Skip to content

Commit

Permalink
Docs: Adjust dynamic macro docs to include more than the planck (qmk#…
Browse files Browse the repository at this point in the history
  • Loading branch information
evantravers authored and drashna committed Jul 29, 2018
1 parent 64f1ad0 commit 6caea0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/feature_dynamic_macros.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ QMK supports temporary macros created on the fly. We call these Dynamic Macros.

You can store one or two macros and they may have a combined total of 128 keypresses. You can increase this size at the cost of RAM.

To enable them, first add a new element to the `planck_keycodes` enum — `DYNAMIC_MACRO_RANGE`:
To enable them, first add a new element to the end of your `keycodes` enum — `DYNAMIC_MACRO_RANGE`:

```c
enum planck_keycodes {
enum keycodes {
QWERTY = SAFE_RANGE,
COLEMAK,
DVORAK,
Expand All @@ -20,7 +20,7 @@ enum planck_keycodes {
};
```

It must be the last element because `dynamic_macros.h` will add some more keycodes after it.
Your `keycodes` enum may have a slightly different name. You must add `DYNAMIC_MACRO_RANGE` as the last element because `dynamic_macros.h` will add some more keycodes after it.

Below it, include the `dynamic_macro.h` header:

Expand Down

0 comments on commit 6caea0a

Please sign in to comment.