snatchpad.h 602 B

123456789101112131415161718192021222324
  1. // Copyright 2022 xia0 (@xia0)
  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, \
  15. k10, k11, k12, \
  16. k20, k22 \
  17. ) { \
  18. { k00 , k01 , k02 }, \
  19. { k10 , k11 , k12 }, \
  20. { k20 , KC_NO , k22 } \
  21. }