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.

35 lines
1.2 KiB

  1. // Copyright 2021 Ryan Skidmore (@ryanskidmore, rskeys@ryanskidmore.co.uk)
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. /* Key Matrix Sizes */
  5. #define MATRIX_ROWS 6
  6. #define MATRIX_COLS 24
  7. /* Rows */
  8. #define ROW_A D4
  9. #define ROW_B C6
  10. #define ROW_C D7
  11. #define ROW_D E6
  12. #define ROW_E B4
  13. #define ROW_F B5
  14. /* Columns 0 - 20 (24 with dummy columns for shift registers) */
  15. #define SHR_LATCH B2
  16. #define SHR_CLOCK B3
  17. #define SHR_DATA B1
  18. #define SHR_COLS { 0x000001, 0x000002, 0x000004, 0x000008, 0x000010, 0x000020, 0x000040, 0x000080, 0x000100, 0x000200, 0x000400, 0x000800, 0x001000, 0x002000, 0x004000, 0x008000, 0x010000, 0x020000, 0x040000, 0x080000, 0x100000, 0x200000, 0x400000, 0x800000 }
  19. /* The shift registers on the matrix PCB output a signal on each column, which passes through the
  20. * switch and a diode towards the row. The row is then connected to the AVR as an input. This means
  21. * the diode direction is COL(umn) to ROW */
  22. #define DIODE_DIRECTION COL2ROW
  23. /* The number of RGB LEDs connected */
  24. #define RGB_MATRIX_LED_COUNT 105
  25. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  26. #define LOCKING_SUPPORT_ENABLE
  27. /* Locking resynchronize hack */
  28. #define LOCKING_RESYNC_ENABLE