mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-12-11 20:58:15 +06:00
48 lines
2.0 KiB
C
48 lines
2.0 KiB
C
|
#pragma once
|
||
|
|
||
|
#define PRODUCT_ID 0xDEF2
|
||
|
#define DEVICE_VER 0x0001
|
||
|
|
||
|
#ifdef RGBLIGHT_ENABLE
|
||
|
#define RGB_DI_PIN E2
|
||
|
#define RGBLED_NUM 13
|
||
|
#define RGBLIGHT_HUE_STEP 8
|
||
|
#define RGBLIGHT_SAT_STEP 8
|
||
|
#define RGBLIGHT_VAL_STEP 8
|
||
|
#define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
|
||
|
#define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
|
||
|
/*== all animations enable ==*/
|
||
|
#define RGBLIGHT_ANIMATIONS
|
||
|
// /*== or choose animations ==*/
|
||
|
// #define RGBLIGHT_EFFECT_BREATHING
|
||
|
// #define RGBLIGHT_EFFECT_RAINBOW_MOOD
|
||
|
// #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
|
||
|
// #define RGBLIGHT_EFFECT_SNAKE
|
||
|
// #define RGBLIGHT_EFFECT_KNIGHT
|
||
|
// #define RGBLIGHT_EFFECT_CHRISTMAS
|
||
|
// #define RGBLIGHT_EFFECT_STATIC_GRADIENT
|
||
|
// #define RGBLIGHT_EFFECT_RGB_TEST
|
||
|
// #define RGBLIGHT_EFFECT_ALTERNATING
|
||
|
#endif
|
||
|
|
||
|
//rgb matrix setting// This is a 7-bit address, that gets left-shifted and bit 0
|
||
|
// set to 0 for write, 1 for read (as per I2C protocol)
|
||
|
// The address will vary depending on your wiring:
|
||
|
// 0b1110100 AD <-> GND
|
||
|
// 0b1110111 AD <-> VCC
|
||
|
// 0b1110101 AD <-> SCL
|
||
|
// 0b1110110 AD <-> SDA
|
||
|
#define DRIVER_ADDR_1 0b1110110
|
||
|
#define DRIVER_ADDR_2 0b1110100
|
||
|
#define DRIVER_COUNT 1
|
||
|
#define DRIVER_1_LED_TOTAL 25
|
||
|
#define DRIVER_2_LED_TOTAL 0
|
||
|
#define DRIVER_LED_TOTAL 25
|
||
|
#define RGB_MATRIX_KEYPRESSES // reacts to keypresses
|
||
|
#define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
|
||
|
#define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
|
||
|
#define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended
|
||
|
#define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness)
|
||
|
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255
|
||
|
#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_PINWHEEL // Sets the default mode, if none has been set
|