summaryrefslogtreecommitdiff
path: root/keyboards/nano/keymaps
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/nano/keymaps')
-rw-r--r--keyboards/nano/keymaps/default/keymap.c23
-rw-r--r--keyboards/nano/keymaps/default/rules.mk3
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