keymap.c 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * Copyright 2016 Thomas Fitzsimmons <fitzsim@fitzsim.org>
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation, either version 3 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #include "yoruian.h"
  18. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  19. [0] = LAYOUT_ergodox_YORUIAN
  20. (9, 7, 5, 3, 1, GRV, MINS, EQL, LBRC, 0, 2, 4, 6, 8,
  21. ES, RBRC, Y, O, R, BSLS, P3, P3, J, V, D, F, W, Q,
  22. LC, U, I, A, N, SCLN, M, H, T, S, C, RC,
  23. FF, QUOT, COMM, DOT, SLSH, P0, LGUI, LGUI, K, L, P, G, B, X,
  24. IN, P1, NO, NO, LALT, LALT, NO, NO, Z, PS,
  25. BSPC, RALT, P2, TAB,
  26. NO, NO,
  27. E, LSFT, NO, NO, ENT, SPC),
  28. [1] = LAYOUT_ergodox_YORUIAN
  29. (TR, TR, TR, TR, TR, TR, TR, TR, TR, F5, F6, F7, F8, F9,
  30. TR, TR, TR, TR, TR, TR, TR, TR, TR, F1, F2, F3, F4, FT,
  31. TR, TR, TR, TR, TR, TR, PAUS, LEFT, DOWN, UP, RGHT, FE,
  32. TR, TR, TR, TR, TR, TR, TR, TR, TR, HOME, PGDN, PGUP, END, FW,
  33. TR, TR, TR, TR, TR, TR, TR, TR, TR, TR,
  34. TR, TR, TR, TR,
  35. TR, TR,
  36. TR, TR, TR, TR, TR, TR),
  37. };
  38. void matrix_scan_user(void) {
  39. ergodox_board_led_off();
  40. ergodox_right_led_1_off();
  41. ergodox_right_led_2_off();
  42. ergodox_right_led_3_off();
  43. };
  44. /*
  45. * Local Variables:
  46. * electric-indent-mode: nil
  47. * End:
  48. */