tv44.h 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. #ifndef TV44_H
  2. #define TV44_H
  3. #include "quantum.h"
  4. // This a shortcut to help you visually see your layout.
  5. // There are a number of variations depending on the layout of your bottom row.
  6. // The arrow variant adds an additional key on the bottom-right, while the
  7. // command variant adds an additional key on the bottom-left. arrow-command is a
  8. // combination of both of those, having an additional key on both sides.
  9. //
  10. // Please note that the numbering of the macro arguments are based on the
  11. // numbers of the keys on the PCB.
  12. #define LAYOUT( \
  13. K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \
  14. K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, \
  15. K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, \
  16. K30, K31, K32, K33, K37, K38, K39, K3B \
  17. ) \
  18. { \
  19. { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B }, \
  20. { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B }, \
  21. { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B }, \
  22. { K30, K31, K32, K33, KC_NO, KC_NO, KC_NO, K37, K38, K39, KC_NO, K3B } \
  23. }
  24. #define LAYOUT_arrow( \
  25. K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \
  26. K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, \
  27. K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, \
  28. K30, K31, K32, K33, K37, K38, K39, K3A, K3B \
  29. ) \
  30. { \
  31. { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B }, \
  32. { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B }, \
  33. { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B }, \
  34. { K30, K31, K32, K33, KC_NO, KC_NO, KC_NO, K37, K38, K39, K3A, K3B } \
  35. }
  36. #define LAYOUT_command( \
  37. K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \
  38. K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, \
  39. K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, \
  40. K30, K31, K34, K32, K33, K37, K38, K39, K3B \
  41. ) \
  42. { \
  43. { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B }, \
  44. { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B }, \
  45. { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B }, \
  46. { K30, K31, K32, K33, K34, KC_NO, KC_NO, K37, K38, K39, KC_NO, K3B } \
  47. }
  48. #define LAYOUT_arrow_command( \
  49. K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \
  50. K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, \
  51. K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, \
  52. K30, K31, K34, K32, K33, K37, K38, K39, K3A, K3B \
  53. ) \
  54. { \
  55. { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B }, \
  56. { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B }, \
  57. { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B }, \
  58. { K30, K31, K32, K33, K34, KC_NO, KC_NO, K37, K38, K39, K3A, K3B } \
  59. }
  60. #endif