config.h 1.2 KB

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