config.h 818 B

12345678910111213141516171819202122232425262728293031323334
  1. #pragma once
  2. #include "../config.h"
  3. /* USB Device descriptor parameter */
  4. #define PRODUCT_ID 0x6060
  5. #define DEVICE_VER 0x0001
  6. /* key matrix size */
  7. #define MATRIX_ROWS 16
  8. #define MATRIX_COLS 8
  9. /*
  10. * Keyboard Matrix Assignments
  11. *
  12. * Change this to how you wired your keyboard
  13. * COLS: AVR pins used for columns, left to right
  14. * ROWS: AVR pins used for rows, top to bottom
  15. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  16. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  17. *
  18. */
  19. //Passed through the port multipler, so 4 pins =16
  20. #define MATRIX_ROW_PINS { F0,F1, F2, F3 }
  21. // May be upside down.
  22. #define MATRIX_COL_PINS { B0,B1, B2, B3, B4, B5, B6, B7 }
  23. #define UNUSED_PINS
  24. /* COL2ROW or ROW2COL */
  25. #define DIODE_DIRECTION COL2ROW