]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/lfkeyboards/lfkpad/keymaps/default/keymap.c
Lfkeyboards updates (#2421)
[qmk_firmware.git] / keyboards / lfkeyboards / lfkpad / keymaps / default / keymap.c
1 #include "lfkpad.h"
2 #include "issi.h"
3 #include "lighting.h"
4 #include "action_layer.h"
5
6 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
7 [0] = KEYMAP( /* Base */
8   KC_ESC,   KC_TAB,  KC_PEQL, MO(1), \
9   KC_LNUM,  KC_PSLS, KC_PAST, KC_PMNS, \
10   KC_P7,    KC_P8,   KC_P9,   KC_PPLS, \
11   KC_P4,    KC_P5,   KC_P6, \
12   KC_P1,    KC_P2,   KC_P3,   KC_PENT, \
13   KC_P0,    KC_PDOT),
14
15 [1] = KEYMAP( /* RGB */
16   RGB_SAI,  RGB_VAI,  RGB_HUI,  KC_TRNS, \
17   RGB_SAD,  RGB_VAD,  RGB_HUD,  KC_TRNS, \
18   RGB_M_X,  RGB_M_G,  RGB_MOD,  RGB_RMOD, \
19   RGB_M_SW, RGB_M_SN, RGB_M_K, \
20   RGB_M_P,  RGB_M_B,  RGB_M_R,  RGB_TOG, \
21   KC_NO,    KC_NO),
22 };
23
24
25 const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
26 {
27   // MACRODOWN only works in this function
28       switch(id) {
29       }
30     return MACRO_NONE;
31 };
32
33
34 void matrix_init_user(void) {
35     // This keymap only has a single base layer, so reset the default if needed
36     if(eeconfig_read_default_layer() > 1){
37         eeconfig_update_default_layer(1);
38         default_layer_set(1);
39     }
40 }
41
42 void matrix_scan_user(void) {
43
44 }
45
46 bool process_record_user(uint16_t keycode, keyrecord_t *record) {
47   return true;
48 }
49
50 void led_set_user(uint8_t usb_led) {
51
52 }