config.h 975 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #pragma once
  2. #include "config_common.h"
  3. /* USB Device descriptor parameter */
  4. #define VENDOR_ID 0xFEED
  5. #define PRODUCT_ID 0xAF12
  6. #define DEVICE_VER 0x0001
  7. #define MANUFACTURER Keycapsss
  8. #define PRODUCT Plaid-Pad
  9. #define DESCRIPTION 4x4 numpad with through hole components
  10. /* key matrix size */
  11. #define MATRIX_ROWS 4
  12. #define MATRIX_COLS 4
  13. #define MATRIX_ROW_PINS { C0, C1, C2, C3 }
  14. #define MATRIX_COL_PINS { B0, D7, D6, D5 }
  15. #define UNUSED_PINS { B3, B4, B5, D4}
  16. #define ENCODERS_PAD_A { D0, B1 }
  17. #define ENCODERS_PAD_B { D1, B2 }
  18. #define ENCODER_RESOLUTION 4
  19. /* COL2ROW, ROW2COL*/
  20. #define DIODE_DIRECTION COL2ROW
  21. #define NO_UART 1
  22. #define USB_MAX_POWER_CONSUMPTION 100
  23. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  24. #define DEBOUNCE 5
  25. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  26. #define LOCKING_SUPPORT_ENABLE
  27. /* Locking resynchronize hack */
  28. #define LOCKING_RESYNC_ENABLE