rartpad.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #pragma once
  2. #include "quantum.h"
  3. /* This a shortcut to help you visually see your layout.
  4. *
  5. * The first section contains all of the arguments representing the physical
  6. * layout of the board and position of the keys.
  7. *
  8. * The second converts the arguments into a two-dimensional array which
  9. * represents the switch matrix.
  10. */
  11. #define LAYOUT_ortho_5x4( \
  12. K00, K01, K02, K03, \
  13. K10, K11, K12, K13, \
  14. K20, K21, K22, K23, \
  15. K30, K31, K32, K33, \
  16. K40, K41, K42, K43 \
  17. ) \
  18. { \
  19. { K00, K01, K02, K03 }, \
  20. { K10, K11, K12, K13 }, \
  21. { K20, K21, K22, K23 }, \
  22. { K30, K31, K32, K33 }, \
  23. { K40, K41, K42, K43 }, \
  24. }
  25. #define LAYOUT_numpad_5x4( \
  26. K00, K01, K02, K03, \
  27. K10, K11, K12, \
  28. K20, K21, K22, K13, \
  29. K30, K31, K32, \
  30. K40, K42, K33 \
  31. ) \
  32. { \
  33. { K00, K01, K02, K03 }, \
  34. { K10, K11, K12, K13 }, \
  35. { K20, K21, K22, KC_NO }, \
  36. { K30, K31, K32, K33 }, \
  37. { K40, KC_NO, K42, KC_NO }, \
  38. }