]> git.friedersdorff.com Git - max/tmk_keyboard.git/blob - keymap_lightpad.h
febdc6c7f5bd38441c4dd134c8dc3fbfd572546f
[max/tmk_keyboard.git] / keymap_lightpad.h
1 #include "backlight.h"
2
3 static const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4     KEYMAP(\
5         FN0, F1,  DEL, BSPC, \
6         NLCK,PSLS,PAST,PMNS, \
7         P7,  P8,  P9,  PPLS, \
8         P4,  P5,  P6,        \
9         P1,  P2,  P3,  PENT, \
10         P0,  NO,  PDOT),     \
11     KEYMAP(\
12         TRNS,PGDN,PGUP,MUTE, \
13         MSEL,MPRV,MNXT,VOLD, \
14         P7,  P8,  P9,  VOLU, \
15         FN4, FN5, FN6,       \
16         FN1, FN2, FN3, MPLY, \
17         FN7, NO,  MSTP)
18 };
19
20 static const action_t PROGMEM fn_actions[] = {
21     [0] = ACTION_LAYER_MOMENTARY(1),
22     [1] = ACTION_BACKLIGHT_LEVEL(BACKLIGHT_FN1),
23     [2] = ACTION_BACKLIGHT_LEVEL(BACKLIGHT_FN2),
24     [3] = ACTION_BACKLIGHT_LEVEL(BACKLIGHT_FN3),
25     [4] = ACTION_BACKLIGHT_LEVEL(BACKLIGHT_FN4),
26     [5] = ACTION_BACKLIGHT_LEVEL(BACKLIGHT_NUMPAD),
27     [6] = ACTION_BACKLIGHT_LEVEL(BACKLIGHT_REAR),
28     [7] = ACTION_BACKLIGHT_TOGGLE()
29 };