1
0

config.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 Fengz
  8. #define PRODUCT Tetris
  9. /* key matrix size */
  10. #define MATRIX_ROWS 5
  11. #define MATRIX_COLS 12
  12. /* key matrix pins */
  13. #define MATRIX_ROW_PINS { B3, B2, B1, B0, E6 }
  14. #define MATRIX_COL_PINS { D7, B4, B6, C6, C7, F6, F7, D4, D2, D3, D5, D6 }
  15. #define UNUSED_PINS
  16. /* COL2ROW or ROW2COL */
  17. #define DIODE_DIRECTION COL2ROW
  18. /* Set 0 if debouncing isn't needed */
  19. #define DEBOUNCE 5
  20. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  21. #define LOCKING_SUPPORT_ENABLE
  22. /* Locking resynchronize hack */
  23. #define LOCKING_RESYNC_ENABLE
  24. #define NO_ACTION_MACRO
  25. #define NO_ACTION_FUNCTION
  26. #ifdef AUDIO_ENABLE
  27. #define AUDIO_PIN B5
  28. #define STARTUP_SONG SONG(ONE_UP_SOUND)
  29. #define NO_MUSIC_MODE
  30. #endif
  31. #define ENCODERS_PAD_A { D1,F1 }
  32. #define ENCODERS_PAD_B { D0,F0 }
  33. #define RGB_DI_PIN F5
  34. #define RGBLIGHT_ANIMATIONS
  35. #define RGBLIGHT_SLEEP
  36. #define RGBLED_NUM 47
  37. #define RGBLIGHT_HUE_STEP 8
  38. #define RGBLIGHT_SAT_STEP 8
  39. #define RGBLIGHT_VAL_STEP 8
  40. #define RGBLIGHT_EFFECT_KNIGHT_LED_NUM 12