Keyboard firmwares for Atmel AVR and Cortex-M
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.

keymap_default.c 4.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /*
  2. Copyright 2011,2012,2015 Jun Wako <[email protected]>
  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 <stdint.h>
  15. #include "keycode.h"
  16. #include "keymap_common.h"
  17. const uint8_t keymaps[][MATRIX_ROWS][MATRIX_COLS] PROGMEM = {
  18. /* Default:
  19. * M0110 M0120
  20. * ,---------------------------------------------------------. ,---------------.
  21. * | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backs| |Nlk| -| +| *|
  22. * |---------------------------------------------------------| |---------------|
  23. * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \| | 7| 8| 9| /|
  24. * |---------------------------------------------------------| |---------------|
  25. * |Ctrl | A| S| D| F| G| H| J| K| L| ;| '|Return| | 4| 5| 6| ,|
  26. * |---------------------------------------------------------| |---------------|
  27. * |Shift | Z| X| C| V| B| N| M| ,| ,| /|Shift | | 1| 2| 3| |
  28. * `---------------------------------------------------------' |-----------|Ent|
  29. * |Opt|Mac | Space |Fn |Opt| | 0| .| |
  30. * `-----------------------------------------------' `---------------'
  31. * M0110A
  32. * ,---------------------------------------------------------. ,---------------.
  33. * | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backs| |Nlk| =| /| *|
  34. * |---------------------------------------------------------| |---------------|
  35. * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| | | 7| 8| 9| -|
  36. * |-----------------------------------------------------' | |---------------|
  37. * |Ctrl | A| S| D| F| G| H| J| K| L| ;| '|Return| | 4| 5| 6| +|
  38. * |---------------------------------------------------------| |---------------|
  39. * |Shift | Z| X| C| V| B| N| M| ,| ,| /|Shft|Up | | 1| 2| 3| |
  40. * |---------------------------------------------------------| |-----------|Ent|
  41. * |Opt |Mac | Space | \|Lft|Rgt|Dn | | 0| .| |
  42. * `---------------------------------------------------------' `---------------'
  43. */
  44. [0] = KEYMAP(
  45. GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, BSPC, NLCK,EQL, PSLS,PAST,
  46. TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC, P7, P8, P9, PMNS,
  47. LCTL,A, S, D, F, G, H, J, K, L, SCLN,QUOT, ENT, P4, P5, P6, PPLS,
  48. LSFT,Z, X, C, V, B, N, M, COMM,DOT, SLSH, UP, P1, P2, P3, PENT,
  49. LALT,LGUI, SPC, FN0, BSLS,LEFT,RGHT,DOWN, P0, PDOT
  50. ),
  51. /* Cursor Layer
  52. * ,---------------------------------------------------------. ,---------------.
  53. * |Esc| F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12|Delet| |Nlk| -| +| *|
  54. * |---------------------------------------------------------| |---------------|
  55. * |Caps |Hom| Up|PgU| | | | |Psc|Slk|Pau|Up | |INS| | 7| 8| 9| /|
  56. * |---------------------------------------------------------| |---------------|
  57. * |Ctrl |Lef|Dow|Rig| | | | |Hom|PgU|Lef|Rig|Return| | 4| 5| 6| ,|
  58. * |---------------------------------------------------------| |---------------|
  59. * |Shift |End| |PgD| | | | |End|PgD|Dow|Shift | | 1| 2| 3| |
  60. * `---------------------------------------------------------' |-----------|Ent|
  61. * |Opt|Mac | Space |Fn |Opt| | 0| .| |
  62. * `-----------------------------------------------' `---------------'
  63. */
  64. [1] = KEYMAP(
  65. ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, DEL, NLCK,EQL, PSLS,PAST,
  66. CAPS,HOME,UP, PGUP,NO, NO, NO, NO, PSCR,SLCK,PAUS,UP, NO, P7, P8, P9, PMNS,
  67. LCTL,LEFT,DOWN,RGHT,NO, NO, NO, NO, HOME,PGUP,LEFT,RGHT, ENT, P4, P5, P6, PPLS,
  68. LSFT,END, NO, PGDN,NO, NO, NO, NO, END, PGDN,DOWN, PGUP, P1, P2, P3, PENT,
  69. LALT,LGUI, SPC, FN0, INS, HOME,END, PGDN, P0, PDOT
  70. ),
  71. };
  72. /*
  73. * Fn action definition
  74. */
  75. const uint16_t fn_actions[] PROGMEM = {
  76. [0] = ACTION_LAYER_MOMENTARY(1),
  77. };