config.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 qmkbuilder
  8. #define PRODUCT keyboard
  9. #define DESCRIPTION Keyboard
  10. /* key matrix size */
  11. #define MATRIX_ROWS 5
  12. #define MATRIX_COLS 16
  13. #define ATMEGA_COLS 8
  14. /* key matrix pins */
  15. #define MATRIX_ROW_PINS { B1, B2, B3, C6, B6 }
  16. #define MATRIX_COL_PINS { F6, B5, B4, D7, D6, D5, D3, D2 }
  17. #define UNUSED_PINS
  18. /* COL2ROW or ROW2COL */
  19. #define DIODE_DIRECTION COL2ROW
  20. /* number of backlight levels */
  21. #define BACKLIGHT_PIN B7
  22. #ifdef BACKLIGHT_PIN
  23. #define BACKLIGHT_LEVELS 3
  24. #endif
  25. /* Set 0 if debouncing isn't needed */
  26. #define DEBOUNCING_DELAY 5
  27. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  28. #define LOCKING_SUPPORT_ENABLE
  29. /* Locking resynchronize hack */
  30. #define LOCKING_RESYNC_ENABLE
  31. /* key combination for command */
  32. #define IS_COMMAND() ( \
  33. keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
  34. )
  35. /* prevent stuck modifiers */
  36. #define PREVENT_STUCK_MODIFIERS
  37. #ifdef RGB_DI_PIN
  38. #define RGBLIGHT_ANIMATIONS
  39. #define RGBLED_NUM 0
  40. #define RGBLIGHT_HUE_STEP 8
  41. #define RGBLIGHT_SAT_STEP 8
  42. #define RGBLIGHT_VAL_STEP 8
  43. #endif