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.

unimap_hhkb.c 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. Copyright 2016 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 "unimap_trans.h"
  15. #define AC_L1 ACTION_LAYER_MOMENTARY(1)
  16. #ifdef KEYMAP_SECTION_ENABLE
  17. const action_t actionmaps[][UNIMAP_ROWS][UNIMAP_COLS] __attribute__ ((section (".keymap.keymaps"))) = {
  18. #else
  19. const action_t actionmaps[][UNIMAP_ROWS][UNIMAP_COLS] PROGMEM = {
  20. #endif
  21. [0] = UNIMAP_HHKB(
  22. ESC, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, BSLS,GRV,
  23. TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC, BSPC,
  24. LCTL,A, S, D, F, G, H, J, K, L, SCLN,QUOT, ENT,
  25. LSFT, Z, X, C, V, B, N, M, COMM,DOT, SLSH, RSFT,L1,
  26. LALT,LGUI, SPC, RGUI,RALT),
  27. [1] = UNIMAP_HHKB(
  28. PWR, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, INS, DEL,
  29. CAPS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,PSCR,SLCK,PAUS,UP, TRNS, TRNS,
  30. TRNS,VOLD,VOLU,MUTE,TRNS,TRNS,PAST,PSLS,HOME,PGUP,LEFT,RGHT, PENT,
  31. TRNS, TRNS,TRNS,TRNS,TRNS,TRNS,PPLS,PMNS,END, PGDN,DOWN, TRNS,TRNS,
  32. TRNS,TRNS, TRNS, TRNS,TRNS),
  33. };