config.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #pragma once
  2. /* USB Device descriptor parameter */
  3. #define PRODUCT_ID 0x6060
  4. #define DEVICE_VER 0x0002
  5. /* key matrix size */
  6. #define MATRIX_ROWS 15
  7. #define MATRIX_COLS 7
  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. #define MATRIX_ROW_PINS { D7, E0, E1, C0, C6, F6, D4, D2, D3, D0, B7, D1, E6, B4, B2 }
  19. #define MATRIX_COL_PINS { E7, F0, F7, B1, B3, B0, D5 }
  20. #define UNUSED_PINS
  21. /* COL2ROW or ROW2COL */
  22. #define DIODE_DIRECTION COL2ROW
  23. #define LED_NUM_LOCK_PIN C5
  24. #define LED_CAPS_LOCK_PIN C1
  25. #define LED_SCROLL_LOCK_PIN C4
  26. #define LED_COMPOSE_PIN C3
  27. #define LED_PIN_ON_STATE 0
  28. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  29. #define DEBOUNCE 5
  30. #define IGNORE_MOD_TAP_INTERRUPT
  31. // Reduce input latency by lowering the USB polling interval
  32. // from its 10ms default to the 1ms minimum that USB 1.x (Full Speed) allows:
  33. #define USB_POLLING_INTERVAL_MS 1