config.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 Unikeyboard
  8. #define PRODUCT Felix
  9. #define DESCRIPTION 4x5 number/macropad.
  10. /* key matrix size */
  11. #define MATRIX_ROWS 5
  12. #define MATRIX_COLS 4
  13. /* key matrix pins */
  14. #define MATRIX_ROW_PINS { B2, B3, B1, F7, F6 }
  15. #define MATRIX_COL_PINS { B5, B4, E6, D7 }
  16. #define UNUSED_PINS
  17. /* COL2ROW or ROW2COL */
  18. #define DIODE_DIRECTION ROW2COL
  19. /* number of backlight levels */
  20. /* Not sure what pin controls the backlighting, need help for this. */
  21. #define BACKLIGHT_PIN
  22. #define BACKLIGHT_LEVELS 5
  23. /* Set 0 if debouncing isn't needed */
  24. #define DEBOUNCING_DELAY 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. /* key combination for command */
  30. #define IS_COMMAND() ( \
  31. keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
  32. )
  33. /* prevent stuck modifiers */
  34. #define PREVENT_STUCK_MODIFIERS
  35. /* there is no rgb underglow by default. */
  36. #define RGB_DI_PIN
  37. #define RGBLIGHT_ANIMATIONS
  38. #define RGBLED_NUM 16
  39. #define RGBLIGHT_HUE_STEP 8
  40. #define RGBLIGHT_SAT_STEP 8
  41. #define RGBLIGHT_VAL_STEP 8