keymap.c 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #include "clueboard_17.h"
  2. #include "backlight.h"
  3. // Each layer gets a name for readability, which is then used in the keymap matrix below.
  4. // The underscores don't mean anything - you can have a layer called STUFF or any other name.
  5. // Layer names don't all need to be of the same length, obviously, and you can also skip them
  6. // entirely and just use numbers.
  7. #define _BL 0
  8. #define _FL 1
  9. #define _RS 2
  10. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  11. /* Keymap _BL: (Base Layer) Default Layer
  12. * .-------------------.
  13. * |NL F| /| *| -|
  14. * |-------------------|
  15. * | 7| 8| 9| |
  16. * |--------------| |
  17. * | 4| 5| 6| +|
  18. * |-------------------|
  19. * | 1| 2| 3| |
  20. * |--------------| |
  21. * | 0| .| Ent|
  22. * '-------------------'
  23. */
  24. [_BL] = KEYMAP(
  25. LT(_FL, KC_NLCK), KC_PSLS, KC_PAST, KC_PMNS, \
  26. KC_P7, KC_P8, KC_P9, KC_PPLS, \
  27. KC_P4, KC_P5, KC_P6, \
  28. KC_P1, KC_P2, KC_P3, KC_PENT, \
  29. KC_P0, KC_PDOT),
  30. /* Keymap _FL: Function Layer
  31. * .-------------------.
  32. * |NL F| | | Fn0|
  33. * |-------------------|
  34. * | | Fn4| | |
  35. * |--------------| |
  36. * | Fn3|BL_S| Fn2| Fn6|
  37. * |-------------------|
  38. * | | Fn5| | |
  39. * |--------------| |
  40. * | Fn1| | Fn7|
  41. * '-------------------'
  42. */
  43. [_FL] = KEYMAP(
  44. LT(_FL, KC_NLCK), KC_TRNS, KC_TRNS, RGB_TOG, \
  45. KC_TRNS, RGB_SAI, KC_TRNS, RGB_VAI, \
  46. RGB_HUD, BL_STEP, RGB_HUI, \
  47. KC_TRNS, RGB_SAD, KC_TRNS, RGB_VAD, \
  48. RGB_MOD, KC_TRNS)
  49. };
  50. /*enum function_id {
  51. };*/
  52. const uint16_t PROGMEM fn_actions[] = {
  53. };
  54. void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) {
  55. switch (id) {
  56. }
  57. }