qmk-firmware/keyboards/catch22/keymaps/default/keymap.c
Yan-Fa Li 16d6fd6e8e 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
2018-08-06 08:40:00 -07:00

32 lines
852 B
C

#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;
};