●
Those using “M( )” are macros, which are identified by a number and defined in the
keymap.c file below the layer matrices
●
Other functions include “LT( )” which toggles a particular layer when held, and “TO( )”
which switches to a particular layer
●
A more complete list of valid keycodes and functions can be found here:
https://github.com/tmk/tmk_keyboard/blob/master/tmk_core/doc/keymap.md
The same keymap.c file, showing some of the macro definitions
Macros are defined in the switch statement after the layer matrices. Inside the “MACRO( )” call,
provide a comma-separated list of the actions you want to be executed by the macro, in the order
you want them to be executed. Defining macro actions works a little differently from how the layer
matrices were defined above:
●
“T( )” indicates a key which is typed once
9