config.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. #define DESCRIPTION Planck mit
  10. #define QMK_ESC_OUTPUT B0
  11. #define QMK_ESC_INPUT D7
  12. #define QMK_LED B7
  13. #define QMK_SPEAKER B5
  14. /* key matrix size */
  15. #define MATRIX_ROWS 4
  16. #define MATRIX_COLS 12
  17. /* key matrix pins */
  18. #define MATRIX_ROW_PINS { B3, B2, B1, B0 }
  19. #define MATRIX_COL_PINS { D7, B4, B6, C6, C7, F6, F7, D4, D2, D3, D5, D6 }
  20. #define UNUSED_PINS
  21. /* COL2ROW or ROW2COL */
  22. #define DIODE_DIRECTION COL2ROW
  23. /* Set 0 if debouncing isn't needed */
  24. #define DEBOUNCING_DELAY 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. /* key combination for command */
  30. #define IS_COMMAND() ( \
  31. keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
  32. )
  33. #define NO_ACTION_MACRO
  34. #define NO_ACTION_FUNCTION
  35. #define TAPPING_TERM 200
  36. #ifdef AUDIO_ENABLE
  37. #define B5_AUDIO
  38. #define STARTUP_SONG SONG(ONE_UP_SOUND)
  39. #define NO_MUSIC_MODE
  40. #endif
  41. #if RGBLIGHT_ENABLE
  42. #define RGB_DI_PIN F5
  43. #define RGBLIGHT_ANIMATIONS
  44. #define RGBLIGHT_SLEEP
  45. #define RGBLED_NUM 47
  46. #define RGBLIGHT_EFFECT_KNIGHT_LED_NUM 12
  47. //#define RGBLIGHT_LIMIT_VAL 128
  48. #endif