2
0

keymap.c 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. Copyright 2018 Jordi Pakey-Rodriguez
  3. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation, either version 2 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. #include QMK_KEYBOARD_H
  15. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  16. [0] = LAYOUT(
  17. LT(1, KC_NLCK), KC_PSLS, KC_PAST, KC_PMNS,
  18. KC_P7, KC_P8, KC_P9, KC_PPLS,
  19. KC_P4, KC_P5, KC_P6, KC_PEQL,
  20. KC_P1, KC_P2, KC_P3, KC_TAB,
  21. KC_PCMM, KC_P0, KC_PDOT, KC_PENT
  22. ),
  23. [1] = LAYOUT(
  24. _______, RESET, BL_STEP, RGB_TOG,
  25. RGB_HUI, RGB_SAI, RGB_VAI, RGB_MOD,
  26. RGB_HUD, RGB_SAD, RGB_VAD, RGB_RMOD,
  27. RGB_M_P, RGB_M_B, RGB_M_R, RGB_M_SW,
  28. RGB_M_SN, RGB_M_K, RGB_M_X, RGB_M_G
  29. ),
  30. };
  31. const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) {
  32. return MACRO_NONE;
  33. }
  34. void matrix_init_user(void) {}
  35. void matrix_scan_user(void) {}
  36. bool process_record_user(uint16_t keycode, keyrecord_t *record) {
  37. switch (keycode) {}
  38. return true;
  39. }
  40. void led_set_user(uint8_t usb_led) {
  41. if (usb_led & (1 << USB_LED_NUM_LOCK)) {
  42. // Illuminate the LED under the Num Lock key
  43. rgblight_sethsv_at(0, 0, 127, 1);
  44. } else {
  45. rgblight_sethsv_at(0, 0, 0, 1);
  46. }
  47. }