rev1.h 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /* Copyright 2019 Jack Humbert <jmdaly@gmail.com>
  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. #pragma once
  17. #include "quantum.h"
  18. // This a shortcut to help you visually see your layout.
  19. // There are a number of variations depending on the layout of your bottom row.
  20. // The arrow variant adds an additional key on the bottom-right, while the
  21. // command variant adds an additional key on the bottom-left. arrow-command is a
  22. // combination of both of those, having an additional key on both sides.
  23. //
  24. // Please note that the numbering of the macro arguments are based on the
  25. // numbers of the keys on the PCB.
  26. #define LAYOUT_standard( \
  27. K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \
  28. K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, \
  29. K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, \
  30. K30, K31, K33, K34, K36, K38, K39, K3B \
  31. ) \
  32. { \
  33. { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B }, \
  34. { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B }, \
  35. { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B }, \
  36. { K30, K31, KC_NO, K33, K34, KC_NO, K36, KC_NO, K38, K39, KC_NO, K3B } \
  37. }
  38. #define LAYOUT_arrow( \
  39. K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \
  40. K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, \
  41. K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, \
  42. K30, K31, K33, K34, K36, K38, K39, K3A, K3B \
  43. ) \
  44. { \
  45. { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B }, \
  46. { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B }, \
  47. { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B }, \
  48. { K30, K31, KC_NO, K33, K34, KC_NO, K36, KC_NO, K38, K39, K3A, K3B } \
  49. }
  50. #define LAYOUT_command( \
  51. K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \
  52. K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, \
  53. K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, \
  54. K30, K31, K32, K33, K34, K36, K38, K39, K3B \
  55. ) \
  56. { \
  57. { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B }, \
  58. { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B }, \
  59. { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B }, \
  60. { K30, K31, K32, K33, K34, KC_NO, K36, KC_NO, K38, K39, KC_NO, K3B } \
  61. }
  62. #define LAYOUT_arrow_command( \
  63. K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \
  64. K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, \
  65. K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, \
  66. K30, K31, K32, K33, K34, K36, K38, K39, K3A, K3B \
  67. ) \
  68. { \
  69. { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B }, \
  70. { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B }, \
  71. { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B }, \
  72. { K30, K31, K32, K33, K34, KC_NO, K36, KC_NO, K38, K39, K3A, K3B } \
  73. }