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.

49 lines
1.7 KiB

  1. /* Copyright 2021 Simon Arlott
  2. *
  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. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #include QMK_KEYBOARD_H
  17. enum layer_names {
  18. L_NUM,
  19. L_BL,
  20. L_RGB
  21. };
  22. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  23. [L_NUM] = LAYOUT_ortho_6x4(
  24. KC_ESC, KC_CALC, MO(L_BL),MO(L_RGB),
  25. KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
  26. KC_P7, KC_P8, KC_P9, KC_PPLS,
  27. KC_P4, KC_P5, KC_P6, KC_PPLS,
  28. KC_P1, KC_P2, KC_P3, KC_PENT,
  29. KC_P0, KC_P0, KC_PDOT, KC_PENT
  30. ),
  31. [L_BL] = LAYOUT_ortho_6x4(
  32. _______, _______, _______, _______,
  33. _______, _______, _______, _______,
  34. _______, BL_ON, _______, BL_INC,
  35. _______, BL_TOGG, _______, BL_INC,
  36. _______, BL_OFF, _______, BL_DEC,
  37. BL_BRTG, _______, _______, BL_DEC
  38. ),
  39. [L_RGB] = LAYOUT_ortho_6x4(
  40. _______, _______, _______, _______,
  41. _______, _______, _______, _______,
  42. _______, RGB_MOD, _______, RGB_VAI,
  43. _______, RGB_TOG, _______, RGB_VAI,
  44. _______, RGB_RMOD,_______, RGB_VAD,
  45. RGB_M_R, _______, _______, RGB_VAD
  46. )
  47. };