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.

31 lines
743 B

  1. #pragma once
  2. #include "config_common.h"
  3. /* USB Device descriptor parameter */
  4. #define VENDOR_ID 0xFEED
  5. #define PRODUCT_ID 0x6060
  6. #define DEVICE_VER 0x0001
  7. #define MANUFACTURER OkKeebs LLC
  8. #define PRODUCT Puck
  9. #define DESCRIPTION 4x3 macropad
  10. /* key matrix size */
  11. #define MATRIX_ROWS 4
  12. #define MATRIX_COLS 3
  13. #define MATRIX_ROW_PINS { D2, D3, C6, C7 }
  14. #define MATRIX_COL_PINS { B4, D7, D6 }
  15. #define UNUSED_PINS
  16. /* COL2ROW or ROW2COL */
  17. #define DIODE_DIRECTION ROW2COL
  18. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  19. #define DEBOUNCE 5
  20. /* number of backlight levels */
  21. #define BACKLIGHT_LEVELS 3
  22. /* Locking resynchronize hack */
  23. #define LOCKING_RESYNC_ENABLE