config.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 YMDK
  8. #define PRODUCT Melody96
  9. #define DESCRIPTION Melody96
  10. /* key matrix size */
  11. #define MATRIX_ROWS 12
  12. #define MATRIX_COLS 9
  13. /* key matrix pins */
  14. #define MATRIX_ROW_PINS { B7, B3, B2, B1, B0, E6, F0, F1, F4, F5, F6, F7 }
  15. #define MATRIX_COL_PINS { D0, D1, D2, D3, D5, D4, D6, D7, B4 }
  16. #define UNUSED_PINS
  17. /* COL2ROW or ROW2COL */
  18. #define DIODE_DIRECTION ROW2COL
  19. /* number of backlight levels */
  20. #define BACKLIGHT_PIN B6
  21. #ifdef BACKLIGHT_PIN
  22. #define BACKLIGHT_LEVELS 5
  23. #endif
  24. /* Set 0 if debouncing isn't needed */
  25. #define DEBOUNCE 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. #define RGB_DI_PIN E2
  31. #ifdef RGB_DI_PIN
  32. #define RGBLIGHT_ANIMATIONS
  33. #define RGBLED_NUM 18
  34. #define RGBLIGHT_HUE_STEP 8
  35. #define RGBLIGHT_SAT_STEP 8
  36. #define RGBLIGHT_VAL_STEP 8
  37. #endif