config.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. #pragma once
  2. #include "config_common.h"
  3. /* USB Device descriptor parameter */
  4. #define VENDOR_ID 0xC1ED
  5. #define PRODUCT_ID 0x2320
  6. #define DEVICE_VER 0x0001
  7. #define MANUFACTURER Clueboard
  8. #define PRODUCT Clueboard
  9. #define DESCRIPTION QMK keyboard firmware for Clueboard
  10. /* key matrix size */
  11. #define MATRIX_ROWS 10
  12. #define MATRIX_COLS 8
  13. /* ROWS: Top to bottom, COLS: Left to right
  14. */
  15. #define MATRIX_ROW_PINS { B2, C7, C6, B6, B5, B0, B3, D5, D3, D2 }
  16. #define MATRIX_COL_PINS { F0, F1, F4, F5, F6, F7, E6, B1 }
  17. #define UNUSED_PINS
  18. /* COL2ROW or ROW2COL */
  19. #define DIODE_DIRECTION COL2ROW
  20. /* Set 0 if debouncing isn't needed */
  21. #define DEBOUNCING_DELAY 5
  22. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  23. #define LOCKING_SUPPORT_ENABLE
  24. /* Locking resynchronize hack */
  25. #define LOCKING_RESYNC_ENABLE
  26. /* key combination for command */
  27. #define IS_COMMAND() ( \
  28. keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
  29. )
  30. /*
  31. * Feature disable options
  32. * These options are also useful to firmware size reduction.
  33. */
  34. /* disable debug print */
  35. //#define NO_DEBUG
  36. /* disable print */
  37. //#define NO_PRINT
  38. /* disable action features */
  39. //#define NO_ACTION_LAYER
  40. //#define NO_ACTION_TAPPING
  41. //#define NO_ACTION_ONESHOT
  42. //#define NO_ACTION_MACRO
  43. //#define NO_ACTION_FUNCTION
  44. /* Backlight configuration
  45. */
  46. #define BACKLIGHT_LEVELS 1
  47. /* Underlight configuration
  48. */
  49. #define RGB_DI_PIN D7
  50. #define RGBLED_NUM 14 // Number of LEDs
  51. #define RGBLIGHT_HUE_STEP 32
  52. #define RGBLIGHT_SAT_STEP 17
  53. #define RGBLIGHT_VAL_STEP 17
  54. #define RGBLIGHT_ANIMATIONS
  55. #define RGBLIGHT_EFFECT_BREATHE_CENTER 1
  56. #define RGBLIGHT_EFFECT_BREATHE_MAX 200
  57. #define RGBLIGHT_EFFECT_CHRISTMAS_INTERVAL 666*2
  58. #define RGBLIGHT_EFFECT_CHRISTMAS_STEP 1
  59. #define RGBLIGHT_EFFECT_KNIGHT_LENGTH 3 // How many LEDs wide to light up
  60. #define RGBLIGHT_EFFECT_KNIGHT_OFFSET 1 // The led to start at
  61. #define RGBLIGHT_EFFECT_KNIGHT_LED_NUM 5 // How many LEDs to travel
  62. #define RGBLIGHT_EFFECT_SNAKE_LENGTH 4 // How many LEDs wide to light up