diff options
author | Ralf Schmitt <ralf@bunkertor.net> | 2014-08-23 17:16:16 +0200 |
---|---|---|
committer | Ralf Schmitt <ralf@bunkertor.net> | 2014-08-24 16:31:12 +0200 |
commit | af19f56ec98d27ab939b024effefcbebbab8f125 (patch) | |
tree | a36580e1181affb90423987063d423a498479584 /keyboard/lightpad/keymap_lightpad.h | |
parent | 79840c678e13f9a737f80048bc3b9c9c55e3fc77 (diff) | |
download | qmk_firmware-af19f56ec98d27ab939b024effefcbebbab8f125.tar.gz |
Support for Lightpad keypad
Diffstat (limited to 'keyboard/lightpad/keymap_lightpad.h')
-rw-r--r-- | keyboard/lightpad/keymap_lightpad.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/keyboard/lightpad/keymap_lightpad.h b/keyboard/lightpad/keymap_lightpad.h new file mode 100644 index 000000000..9333964e3 --- /dev/null +++ b/keyboard/lightpad/keymap_lightpad.h @@ -0,0 +1,29 @@ +#include "backlight.h" + +static const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + KEYMAP(\ + FN0, F1, DEL, BSPC, \ + NLCK,PSLS,PAST,PMNS, \ + P7, P8, P9, PPLS, \ + P4, P5, P6, \ + P1, P2, P3, PENT, \ + P0, NO, PDOT), \ + KEYMAP(\ + TRNS,PGDN,PGUP,MUTE, \ + MSEL,MPRV,MNXT,VOLD, \ + P7, P8, P9, VOLU, \ + FN4, FN5, FN6, \ + FN1, FN2, FN3, MPLY, \ + FN7, NO, MSTP) +}; + +static const uint16_t PROGMEM fn_actions[] = { + [0] = ACTION_LAYER_MOMENTARY(1), + [1] = ACTION_BACKLIGHT_LEVEL(BACKLIGHT_FN1), + [2] = ACTION_BACKLIGHT_LEVEL(BACKLIGHT_FN2), + [3] = ACTION_BACKLIGHT_LEVEL(BACKLIGHT_FN3), + [4] = ACTION_BACKLIGHT_LEVEL(BACKLIGHT_FN4), + [5] = ACTION_BACKLIGHT_LEVEL(BACKLIGHT_NUMPAD), + [6] = ACTION_BACKLIGHT_LEVEL(BACKLIGHT_REAR), + [7] = ACTION_BACKLIGHT_TOGGLE() +}; |