You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1.4 KiB

  1. // Copyright 2021 KiwiKey (@KiwiKey)
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #include "quantum.h"
  5. /* This is 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. k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A, k0B, k0C, k0D, k0E, k1E, \
  15. k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A, k1B, k1C, k1D, k2E, \
  16. k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2A, k2B, k2C, k3E, \
  17. k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3A, k3B, k3D, \
  18. k40, k42, k44, k45, k47, k49, k4C, k4D, k4E \
  19. ) \
  20. { \
  21. { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A, k0B, k0C, k0D, k0E }, \
  22. { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A, k1B, k1C, k1D, k1E }, \
  23. { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2A, k2B, k2C, KC_NO, k2E }, \
  24. { k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3A, k3B, KC_NO, k3D, k3E }, \
  25. { k40, KC_NO, k42, KC_NO, k44, k45, KC_NO, k47, KC_NO, k49, KC_NO, KC_NO, k4C, k4D, k4E } \
  26. }