config.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 TheRoyalSweatshirt
  8. #define PRODUCT RoMac+
  9. #define DESCRIPTION A *Plaid inspired twelve-key macropad with upgraded features
  10. /* key matrix size */
  11. #define MATRIX_ROWS 4
  12. #define MATRIX_COLS 3
  13. /* key matrix pins */
  14. #define MATRIX_ROW_PINS { C6, D4, D2, D3 }
  15. #define MATRIX_COL_PINS { F6, F5, F4 }
  16. #define UNUSED_PINS
  17. #define ENCODERS_PAD_A { B3 }
  18. #define ENCODERS_PAD_B { B2 }
  19. /* COL2ROW or ROW2COL */
  20. #define DIODE_DIRECTION COL2ROW
  21. /* number of backlight levels */
  22. #define BACKLIGHT_LEVELS 0
  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. /* ws2812 RGB LED */
  30. #define RGB_DI_PIN F7
  31. #define RGBLED_NUM 4 // Number of LEDs
  32. #define RGBLIGHT_ANIMATIONS
  33. #define RGBLIGHT_HUE_STEP 6
  34. #define RGBLIGHT_SAT_STEP 4
  35. #define RGBLIGHT_VAL_STEP 8