summaryrefslogtreecommitdiffstats
path: root/keyboards/catch22/keymaps/default
diff options
context:
space:
mode:
authorYan-Fa Li <yanfali@gmail.com>2018-08-06 08:40:00 -0700
committerDrashna Jaelre <drashna@live.com>2018-08-06 08:40:00 -0700
commit16d6fd6e8ec8e6423b600459298797c2f14f9647 (patch)
tree2f179b69ba19bef1a829eb8ceaa712ebfabbe029 /keyboards/catch22/keymaps/default
parent2b0f5d3beaecf67848d4326add039190d99bba26 (diff)
Keyboard: Add Catch 22 Hotswap Macropad to QMK (#3576)
* Initial Commit of catch22 macropad by rockydbull * Add configurator info.json * Use macros * Use pragma once * Use CA22 as product id * Clean up readme * Use the layer define value * Feedback from @drashna
Diffstat (limited to 'keyboards/catch22/keymaps/default')
-rw-r--r--keyboards/catch22/keymaps/default/keymap.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/keyboards/catch22/keymaps/default/keymap.c b/keyboards/catch22/keymaps/default/keymap.c
new file mode 100644
index 0000000000..f0300d27fe
--- /dev/null
+++ b/keyboards/catch22/keymaps/default/keymap.c
@@ -0,0 +1,31 @@
+#include QMK_KEYBOARD_H
+
+#define _BASE 0
+#define _FN 1
+
+#define _______ KC_TRNS
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+[_BASE] = LAYOUT( /* Base */
+ KC_A, KC_B, KC_C, KC_D, \
+ KC_E, KC_F, KC_G, KC_H, \
+ MO(_FN), KC_I, KC_J, KC_K, KC_L, \
+ KC_1, KC_M, KC_N, KC_O, KC_P, \
+ KC_Q, KC_R, KC_S, KC_T \
+),
+[_FN] = LAYOUT(
+ RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUI, \
+ _______, _______, _______, _______, \
+ _______, _______, _______, _______, _______, \
+ KC_2, _______, _______, _______, _______, \
+ _______, _______, _______, _______ \
+),
+};
+
+const uint16_t PROGMEM fn_actions[] = {
+};
+
+const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) // MACRODOWN only works in this function
+{
+ return MACRO_NONE;
+};