summaryrefslogtreecommitdiff
path: root/keyboards/chocopad/keymaps/default
diff options
context:
space:
mode:
authorDanny Nguyen <danny@keeb.io>2017-12-20 10:58:28 -0500
committerJack Humbert <jack.humb@gmail.com>2018-01-25 00:58:59 -0500
commit9a91b42e922ed152cb548c529233cf7f2b6d5183 (patch)
treee51b8f46e9b06deee26b95d28fa1c726973f627e /keyboards/chocopad/keymaps/default
parentc73514a2b7284df51b8c6acd416e3fcb01dcbdc7 (diff)
Add Chocopad keyboard
Diffstat (limited to 'keyboards/chocopad/keymaps/default')
-rw-r--r--keyboards/chocopad/keymaps/default/config.h6
-rw-r--r--keyboards/chocopad/keymaps/default/keymap.c61
-rw-r--r--keyboards/chocopad/keymaps/default/rules.mk5
3 files changed, 72 insertions, 0 deletions
diff --git a/keyboards/chocopad/keymaps/default/config.h b/keyboards/chocopad/keymaps/default/config.h
new file mode 100644
index 0000000000..7fa3bf328e
--- /dev/null
+++ b/keyboards/chocopad/keymaps/default/config.h
@@ -0,0 +1,6 @@
+#ifndef CONFIG_USER_H
+#define CONFIG_USER_H
+
+#include "../../config.h"
+
+#endif
diff --git a/keyboards/chocopad/keymaps/default/keymap.c b/keyboards/chocopad/keymaps/default/keymap.c
new file mode 100644
index 0000000000..c4536a1b41
--- /dev/null
+++ b/keyboards/chocopad/keymaps/default/keymap.c
@@ -0,0 +1,61 @@
+#include "chocopad.h"
+
+#define _BASE 0
+#define _FN1 1
+#define _FN2 2
+
+#define KC_ KC_TRNS
+#define _______ KC_TRNS
+
+#define KC_X1 MO(_FN1)
+#define KC_X2 MO(_FN2)
+#define KC_RST RESET
+#define KC_BSTP BL_STEP
+#define KC_RTOG RGB_TOG
+#define KC_RMOD RGB_MOD
+#define KC_RHUI RGB_HUI
+#define KC_RHUD RGB_HUD
+#define KC_RSAI RGB_SAI
+#define KC_RSAD RGB_SAD
+#define KC_RVAI RGB_VAI
+#define KC_RVAD RGB_VAD
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+
+ [_BASE] = KC_KEYMAP(
+ //,----+----+----+----.
+ PGUP,HOME, UP ,END ,
+ //|----+----+----+----|
+ PGDN,LEFT,DOWN,RGHT,
+ //|----+----+----+----|
+ X2 ,VOLU,MPLY,MPRV,
+ //|----+----+----+----|
+ X1 ,VOLD,MUTE,MNXT
+ //`----+----+----+----'
+ ),
+
+ [_FN1] = KC_KEYMAP(
+ //,----+----+----+----.
+ ESC , P7 , P8 , P9 ,
+ //|----+----+----+----|
+ TAB , P4 , P5 , P6 ,
+ //|----+----+----+----|
+ ENT , P1 , P2 , P3 ,
+ //|----+----+----+----|
+ , P0 , P0 ,DOT
+ //`----+----+----+----'
+ ),
+
+ [_FN2] = KC_KEYMAP(
+ //,----+----+----+----.
+ RTOG,RHUI,RSAI,RVAI,
+ //|----+----+----+----|
+ RMOD,RHUD,RSAD,RVAD,
+ //|----+----+----+----|
+ , , ,RST ,
+ //|----+----+----+----|
+ BSTP, , ,
+ //`----+----+----+----'
+ )
+
+};
diff --git a/keyboards/chocopad/keymaps/default/rules.mk b/keyboards/chocopad/keymaps/default/rules.mk
new file mode 100644
index 0000000000..1e57612788
--- /dev/null
+++ b/keyboards/chocopad/keymaps/default/rules.mk
@@ -0,0 +1,5 @@
+RGBLIGHT_ENABLE = yes
+
+ifndef QUANTUM_DIR
+ include ../../../../Makefile
+endif