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
865 B

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