X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=doc%2Fkeymap.md;h=e4728b507d0d957c559ab5cc4a354698a5d287e7;hb=a6146082fb96e13b097d7d77c40e48cb1d16af95;hp=474a706e0c2ad26e43a403116b36ec7a8c2227f4;hpb=a8c465215fce3dad502da868ca49eb446deadc4e;p=tmk_firmware.git diff --git a/doc/keymap.md b/doc/keymap.md index 474a706..e4728b5 100644 --- a/doc/keymap.md +++ b/doc/keymap.md @@ -363,21 +363,19 @@ Default Layer also has bitwise operations, they are executed when key is release `Macro` action indicates complex key strokes. - MACRO( MD(LSHIFT), D(D), END ) - MACRO( U(D), MU(LSHIFT), END ) + MACRO( D(LSHIFT), D(D), END ) + MACRO( U(D), U(LSHIFT), END ) MACRO( I(255), T(H), T(E), T(L), T(L), W(255), T(O), END ) -#### 2.3.1 Normal mode +#### 2.3.1 Macro Commands - **I()** change interavl of stroke. - **D()** press key - **U()** release key - **T()** type key(press and release) - **W()** wait -- **MD()** modifier down -- **MU()** modifier up - **END** end mark -#### 2.3.2 Extended mode +#### 2.3.2 Examples ***TODO: sample impl*** See `keyboard/hhkb/keymap.c` for sample. @@ -430,6 +428,27 @@ See `keyboard/hhkb/keymap.c` for sample. +### 2.5 Backlight Action +These actions control the backlight. + +#### 2.5.1 Change backlight level +Increase backlight level. + + ACTION_BACKLIGHT_INCREASE() + +Decrease backlight level. + + ACTION_BACKLIGHT_DECREASE() + +Step through backlight levels. + + ACTION_BACKLIGHT_STEP() + +#### 2.5.2 Turn on / off backlight +Turn the backlight on and off without changing level. + + ACTION_BACKLIGHT_TOGGLE() + ## 3. Layer switching Example