proton_c.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /* Copyright 2017 skully <skullydazed@gmail.com>
  2. * 2018 Jack Humbert <jack.humb@gmail.com>
  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 2 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. #ifndef PROTON_C_H
  18. #define PROTON_C_H
  19. #include "quantum.h"
  20. /*
  21. * These are shortcuts to help you work with the various layout options. If your
  22. * keymap works with one of the LAYOUT_...() macros you are encouraged to use that
  23. * and to contribute your keymap to the corresponding layout in
  24. * `qmk_firmware/layouts/community`.
  25. */
  26. /* The fully-featured KEYMAP() that has every single key available in the matrix.
  27. */
  28. #define KEYMAP(\
  29. j00, j01, j02, j03, j04, j05, j06, \
  30. j10, j11, j12, j13, j14, j15, j16, \
  31. j20, j21, j22, j23, j24, j25, j26, \
  32. j30, j31, j32, j33, j34, j35, \
  33. j40, j41, j42, j43, j44, \
  34. j54, j55, j56, \
  35. k00, k01, k02, k03, k04, k05, k06, \
  36. k10, k11, k12, k13, k14, k15, k16, \
  37. k20, k21, k22, k23, k24, k25, k26, \
  38. k31, k32, k33, k34, k35, k36, \
  39. k42, k43, k44, k45, k46, \
  40. k50, k51, k52 \
  41. ) { \
  42. { j00, j01, j02, j03, j04, j05, j06 }, \
  43. { j10, j11, j12, j13, j14, j15, j16 }, \
  44. { j20, j21, j22, j23, j24, j25, j26 }, \
  45. { j30, j31, j32, j33, j34, j35, 0 }, \
  46. { j40, j41, j42, j43, j44, 0, 0 }, \
  47. { 0, 0, 0, 0, j54, j55, j56 }, \
  48. { k00, k01, k02, k03, k04, k05, k06 }, \
  49. { k10, k11, k12, k13, k14, k15, k16 }, \
  50. { k20, k21, k22, k23, k24, k25, k26 }, \
  51. { 0, k31, k32, k33, k34, k35, k36 }, \
  52. { 0, 0, k42, k43, k44, k45, k46 }, \
  53. { k50, k51, k52, 0, 0, 0, 0 } \
  54. }
  55. #endif