rev1.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. // Copyright 2021 Christoph Rehmann (crehmann)
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #include "buzzard.h"
  5. /* This a shortcut to help you visually see your layout.
  6. *
  7. * The first section contains all of the arguments representing the physical
  8. * layout of the board and position of the keys.
  9. *
  10. * The second converts the arguments into a two-dimensional array which
  11. * represents the switch matrix.
  12. */
  13. #define LAYOUT( \
  14. L00, L01, L02, L03, L04, R05, R06, R07, R08, R09, \
  15. L10, L11, L12, L13, L14, L15, R16, R17, R18, R19, R20, R21, \
  16. L22, L23, L24, L25, L26, L27, R28, R29, R30, R31, R32, R33, \
  17. L34, L35, L36, R37, R38, R39 \
  18. ) \
  19. { \
  20. { L04, L03, L02, L01, L00, KC_NO }, \
  21. { L15, L14, L13, L12, L11, L10 }, \
  22. { L27, L26, L25, L24, L23, L22 }, \
  23. { L36, L35, L34, KC_NO, KC_NO, KC_NO }, \
  24. { R05, R06, R07, R08, R09, KC_NO }, \
  25. { R16, R17, R18, R19, R20, R21 }, \
  26. { R28, R29, R30, R31, R32, R33 }, \
  27. { R37, R38, R39, KC_NO, KC_NO, KC_NO }, \
  28. }
  29. #define LAYOUT_stack( \
  30. L00, L01, L02, L03, L04, \
  31. L10, L11, L12, L13, L14, L15, \
  32. L22, L23, L24, L25, L26, L27, \
  33. L34, L35, L36, \
  34. \
  35. R05, R06, R07, R08, R09, \
  36. R16, R17, R18, R19, R20, R21, \
  37. R28, R29, R30, R31, R32, R33, \
  38. R37, R38, R39 \
  39. ) \
  40. { \
  41. { L04, L03, L02, L01, L00, KC_NO }, \
  42. { L15, L14, L13, L12, L11, L10 }, \
  43. { L27, L26, L25, L24, L23, L22 }, \
  44. { L36, L35, L34, KC_NO, KC_NO, KC_NO }, \
  45. { R05, R06, R07, R08, R09, KC_NO }, \
  46. { R16, R17, R18, R19, R20, R21 }, \
  47. { R28, R29, R30, R31, R32, R33 }, \
  48. { R37, R38, R39, KC_NO, KC_NO, KC_NO }, \
  49. }