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.

33 lines
899 B

  1. #pragma once
  2. /* USB Device descriptor parameter */
  3. #define PRODUCT_ID 0x6060
  4. #define DEVICE_VER 0x0003
  5. /* key matrix size */
  6. #define MATRIX_ROWS 16
  7. #define MATRIX_COLS 8
  8. /*
  9. * Keyboard Matrix Assignments
  10. *
  11. * Change this to how you wired your keyboard
  12. * COLS: AVR pins used for columns, left to right
  13. * ROWS: AVR pins used for rows, top to bottom
  14. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  15. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  16. *
  17. */
  18. // Passed through the port multipler, so 4 pins =16
  19. #define MATRIX_ROW_PINS { D0, D1, D2, D3 }
  20. #define MATRIX_COL_PINS { B6, B2, B3, B1, F7, F6, F5, F4 }
  21. #define UNUSED_PINS
  22. /* COL2ROW or ROW2COL */
  23. #define DIODE_DIRECTION COL2ROW
  24. #define LED_NUM_LOCK_PIN D4
  25. #define LED_CAPS_LOCK_PIN E6
  26. #define LED_SCROLL_LOCK_PIN C6
  27. #define LED_COMPOSE_PIN D7
  28. #define LED_PIN_ON_STATE 0