config.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #ifndef CONFIG_H
  2. #define CONFIG_H
  3. #include "config_common.h"
  4. /* USB Device descriptor parameter */
  5. #define VENDOR_ID 0xFEED
  6. #define PRODUCT_ID 0x6060
  7. #define DEVICE_VER 0x0001
  8. #define MANUFACTURER Unikeyboard
  9. #define PRODUCT Felix
  10. #define DESCRIPTION 4x5 number/macropad.
  11. /* key matrix size */
  12. #define MATRIX_ROWS 5
  13. #define MATRIX_COLS 4
  14. /* key matrix pins */
  15. #define MATRIX_ROW_PINS { B2, B3, B1, F7, F6 }
  16. #define MATRIX_COL_PINS { B5, B4, E6, D7 }
  17. #define UNUSED_PINS
  18. /* COL2ROW or ROW2COL */
  19. #define DIODE_DIRECTION ROW2COL
  20. /* number of backlight levels */
  21. /* Not sure what pin controls the backlighting, need help for this. */
  22. #define BACKLIGHT_PIN
  23. #define BACKLIGHT_LEVELS 5
  24. /* Set 0 if debouncing isn't needed */
  25. #define DEBOUNCING_DELAY 5
  26. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  27. #define LOCKING_SUPPORT_ENABLE
  28. /* Locking resynchronize hack */
  29. #define LOCKING_RESYNC_ENABLE
  30. /* key combination for command */
  31. #define IS_COMMAND() ( \
  32. keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
  33. )
  34. /* prevent stuck modifiers */
  35. #define PREVENT_STUCK_MODIFIERS
  36. /* there is no rgb underglow by default. */
  37. #define RGB_DI_PIN
  38. #define RGBLIGHT_ANIMATIONS
  39. #define RGBLED_NUM 16
  40. #define RGBLIGHT_HUE_STEP 8
  41. #define RGBLIGHT_SAT_STEP 8
  42. #define RGBLIGHT_VAL_STEP 8
  43. #endif