3 #include "config_common.h"
5 /* USB Device descriptor parameter */
6 #define VENDOR_ID 0xC1ED
7 #define PRODUCT_ID 0x2390
8 #define DEVICE_VER 0x0001
9 #define MANUFACTURER Clueboard
10 #define PRODUCT Clueboard 66% rev4
11 #define DESCRIPTION QMK keyboard firmware for Clueboard
13 /* Address for jumping to bootloader on STM32 chips. */
14 /* It is chip dependent, the correct number can be looked up here:
15 * http://www.st.com/web/en/resource/technical/document/application_note/CD00167594.pdf
17 #define STM32_BOOTLOADER_ADDRESS 0x1FFFD800
20 #define MATRIX_ROWS 10
23 /* ROWS: Top to bottom, COLS: Left to right
25 #define MATRIX_ROW_PINS { B11, A6, A3, A2, A1, B7, B6, C15, C14, C13 }
26 #define MATRIX_COL_PINS { B10, B2, B1, B0, A7, B4, B3, B5 }
27 #define UNUSED_PINS { B15, B14, B13, B12, B9, B8, A15, A10, A9, A8 }
29 /* COL2ROW or ROW2COL */
30 #define DIODE_DIRECTION COL2ROW
32 /* Set 0 if debouncing isn't needed */
33 #define DEBOUNCING_DELAY 5
35 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
36 #define LOCKING_SUPPORT_ENABLE
37 /* Locking resynchronize hack */
38 #define LOCKING_RESYNC_ENABLE
40 /* key combination for command */
41 #define IS_COMMAND() ( \
42 keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
46 * Feature disable options
47 * These options are also useful to firmware size reduction.
50 /* disable debug print */
56 /* disable action features */
57 //#define NO_ACTION_LAYER
58 //#define NO_ACTION_TAPPING
59 //#define NO_ACTION_ONESHOT
60 //#define NO_ACTION_MACRO
61 //#define NO_ACTION_FUNCTION
63 /* Backlight configuration
65 #define BACKLIGHT_LEVELS 1
67 /* Underlight configuration
70 #define RGBLED_NUM 18 // Number of LEDs
71 #define RGBLIGHT_HUE_STEP 32
72 #define RGBLIGHT_SAT_STEP 17
73 #define RGBLIGHT_VAL_STEP 17
75 #define RGBLIGHT_ANIMATIONS
76 #define RGBLIGHT_EFFECT_BREATHE_CENTER 1
77 #define RGBLIGHT_EFFECT_BREATHE_MAX 200
78 #define RGBLIGHT_EFFECT_CHRISTMAS_INTERVAL 666*2
79 #define RGBLIGHT_EFFECT_CHRISTMAS_STEP 1
80 #define RGBLIGHT_EFFECT_KNIGHT_LENGTH 3 // How many LEDs wide to light up
81 #define RGBLIGHT_EFFECT_KNIGHT_OFFSET 2 // The led to start at
82 #define RGBLIGHT_EFFECT_KNIGHT_LED_NUM 5 // How many LEDs to travel
83 #define RGBLIGHT_EFFECT_SNAKE_LENGTH 4 // How many LEDs wide to light up