You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.3 KiB

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