config.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // Copyright 2022 Kyle McCreery (@kylemccreery)
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. /* allows the "key" button on the blackpill to toggle caps lock for user testing before soldering */
  5. #define DIP_SWITCH_PINS { A0 }
  6. /*
  7. * Keyboard Matrix Assignments
  8. *
  9. * Change this to how you wired your keyboard
  10. * COLS: AVR pins used for columns, left to right
  11. * ROWS: AVR pins used for rows, top to bottom
  12. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  13. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  14. *
  15. */
  16. #define MATRIX_ROW_PINS { B12, B10, B13, B1, B14 }
  17. #define MATRIX_COL_PINS { B0, A7, A6, A5, A4, A3 }
  18. /* COL2ROW, ROW2COL */
  19. #define DIODE_DIRECTION COL2ROW
  20. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  21. #define LOCKING_SUPPORT_ENABLE
  22. /* Locking resynchronize hack */
  23. #define LOCKING_RESYNC_ENABLE
  24. #define FORCE_NKRO
  25. /*
  26. * Feature disable options
  27. * These options are also useful to firmware size reduction.
  28. */
  29. /* disable debug print */
  30. //#define NO_DEBUG
  31. /* disable print */
  32. //#define NO_PRINT
  33. /* disable action features */
  34. //#define NO_ACTION_LAYER
  35. //#define NO_ACTION_TAPPING
  36. //#define NO_ACTION_ONESHOT