keymap.c 1.2 KB

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