diff options
author | Danny Nguyen <danny@keeb.io> | 2017-11-01 14:25:44 -0400 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2017-11-01 20:02:52 -0400 |
commit | 13e1388f2d448781a0c1cbf4e7ca1199ee7312fa (patch) | |
tree | b9b22bb8468e0a0f10539e89343011f6f79aff5d /keyboards/nano/keymaps | |
parent | fe56fffe7d70e706432a1d1f6315a7978390e57b (diff) |
Add nano switch pad
Diffstat (limited to 'keyboards/nano/keymaps')
-rw-r--r-- | keyboards/nano/keymaps/default/keymap.c | 23 | ||||
-rw-r--r-- | keyboards/nano/keymaps/default/rules.mk | 3 |
2 files changed, 26 insertions, 0 deletions
diff --git a/keyboards/nano/keymaps/default/keymap.c b/keyboards/nano/keymaps/default/keymap.c new file mode 100644 index 0000000000..26e00bf52f --- /dev/null +++ b/keyboards/nano/keymaps/default/keymap.c @@ -0,0 +1,23 @@ +#include "nano.h" + +#define _MAIN 0 +#define _FN 1 + +#define KC_ KC_TRNS +#define KC_X0 LT(_FN, KC_ESC) +#define KC_RTOG RGB_TOG +#define KC_RMOD RGB_MOD +#define KC_RHUI RGB_HUI +#define KC_RHUD RGB_HUD + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [_MAIN] = KC_KEYMAP( + VOLU,MPLY,MPRV,PGUP, + VOLD,MUTE,MNXT,PGDN + ), + + [_FN] = KC_KEYMAP( + F , ,RHUI, , + RTOG,RMOD,RHUD, + ) +}; diff --git a/keyboards/nano/keymaps/default/rules.mk b/keyboards/nano/keymaps/default/rules.mk new file mode 100644 index 0000000000..457a3d01d4 --- /dev/null +++ b/keyboards/nano/keymaps/default/rules.mk @@ -0,0 +1,3 @@ +ifndef QUANTUM_DIR + include ../../../../Makefile +endif |