config.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 Fengz
  9. #define PRODUCT Tetris
  10. #define DESCRIPTION Planck mit
  11. #define QMK_ESC_OUTPUT B0
  12. #define QMK_ESC_INPUT D7
  13. #define QMK_LED B7
  14. #define QMK_SPEAKER B5
  15. /* key matrix size */
  16. #define MATRIX_ROWS 4
  17. #define MATRIX_COLS 12
  18. /* key matrix pins */
  19. #define MATRIX_ROW_PINS { B3, B2, B1, B0 }
  20. #define MATRIX_COL_PINS { D7, B4, B6, C6, C7, F6, F7, D4, D2, D3, D5, D6 }
  21. #define UNUSED_PINS
  22. /* COL2ROW or ROW2COL */
  23. #define DIODE_DIRECTION COL2ROW
  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. #define TAPPING_TERM 200
  37. #define PERMISSIVE_HOLD
  38. #ifdef AUDIO_ENABLE
  39. #define B5_AUDIO
  40. #define STARTUP_SONG SONG(ONE_UP_SOUND)
  41. #define NO_MUSIC_MODE
  42. #endif
  43. #define RGB_DI_PIN F5
  44. #ifdef RGB_DI_PIN
  45. #define RGBLIGHT_ANIMATIONS
  46. #define RGBLIGHT_SLEEP
  47. #define RGBLED_NUM 47
  48. #define RGBLIGHT_EFFECT_KNIGHT_LED_NUM 12
  49. //#define RGBLIGHT_LIMIT_VAL 128
  50. #endif
  51. #endif