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.

56 lines
1.2 KiB

  1. #pragma once
  2. #include "config_common.h"
  3. /* USB Device descriptor parameter */
  4. #define VENDOR_ID 0xFEED
  5. #define PRODUCT_ID 0x2020
  6. #define DEVICE_VER 0x0001
  7. #define MANUFACTURER Jonathan Cameron
  8. #define PRODUCT 2x5keypad
  9. #define DESCRIPTION 2x5 Keypad
  10. /* key matrix size */
  11. #define MATRIX_ROWS 2
  12. #define MATRIX_COLS 5
  13. /* key matrix pins */
  14. #define MATRIX_ROW_PINS { B3, B2 }
  15. #define MATRIX_COL_PINS { D4, C6, D7, E6, B4 }
  16. #define UNUSED_PINS
  17. /* COL2ROW or ROW2COL */
  18. #define DIODE_DIRECTION COL2ROW
  19. /* number of backlight levels */
  20. #ifdef BACKLIGHT_PIN
  21. #define BACKLIGHT_LEVELS 0
  22. #endif
  23. /* Set 0 if debouncing isn't 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
  29. /* Tap dancing params */
  30. #define TAPPING_TERM 250
  31. /* key combination for command */
  32. /* DISABLED
  33. #define IS_COMMAND() ( \
  34. get_mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
  35. )
  36. */
  37. #ifdef RGB_DI_PIN
  38. #define RGBLIGHT_ANIMATIONS
  39. #define RGBLED_NUM 0
  40. #define RGBLIGHT_HUE_STEP 8
  41. #define RGBLIGHT_SAT_STEP 8
  42. #define RGBLIGHT_VAL_STEP 8
  43. #endif