diff options
author | Sébastien Dailly <sebastien@dailly.me> | 2024-08-16 16:27:11 +0200 |
---|---|---|
committer | Sébastien Dailly <sebastien@dailly.me> | 2024-08-16 16:27:11 +0200 |
commit | 753701d6f537ea02137c227f2727477229baa45b (patch) | |
tree | 1b79a943fe0bab8ec23cb5f831c6baedb3969d92 /qmk/keyboards/sofle_choc | |
parent | 208f67f23f8217cdaa7c3963c5b0748dd812219a (diff) |
Added the rgb backlight configuration
Diffstat (limited to 'qmk/keyboards/sofle_choc')
-rw-r--r-- | qmk/keyboards/sofle_choc/keymaps/custom/config.h | 22 | ||||
-rw-r--r-- | qmk/keyboards/sofle_choc/keymaps/custom/rules.mk | 8 |
2 files changed, 28 insertions, 2 deletions
diff --git a/qmk/keyboards/sofle_choc/keymaps/custom/config.h b/qmk/keyboards/sofle_choc/keymaps/custom/config.h index 9473991..db8e644 100644 --- a/qmk/keyboards/sofle_choc/keymaps/custom/config.h +++ b/qmk/keyboards/sofle_choc/keymaps/custom/config.h @@ -26,9 +26,29 @@ #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended #define SPLIT_TRANSPORT_MIRROR // If LED_MATRIX_KEYPRESSES or LED_MATRIX_KEYRELEASES is enabled, you also will want to enable SPLIT_TRANSPORT_MIRROR -#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 100 // limits maximum brightness of LEDs (max 255). Higher may cause the controller to crash. +#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs (max 255). Higher may cause the controller to crash. +// Sets the default enabled state, if none has been set +#define RGB_MATRIX_DEFAULT_ON true +// Triggers RGB keypress events on key down. This makes RGB control feel more +// responsive. This may cause RGB to not function properly on some boards +#define RGB_TRIGGER_ON_KEYDOWN + +// Disable the codes, don’t need them. +#define RGB_MATRIX_DISABLE_KEYCODES + +#define ENABLE_RGB_MATRIX_BREATHING +#define ENABLE_RGB_MATRIX_SOLID_COLOR +#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE + // Sets the default mode, if none has been set +#define RGB_MATRIX_DEFAULT_MODE RGB_MATRIX_SOLID_REACTIVE_SIMPLE + +// Sync data between the two splits. This allow the leds to be in sync in the +// two sides. +#define SPLIT_LAYER_STATE_ENABLE +#define SPLIT_LED_STATE_ENABLE +#define SPLIT_MODS_ENABLE #define RP2040_BOOTLOADER_DOUBLE_TAP_RESET // Activates the double-tap behavior #define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 200U // Timeout window in ms in which the double tap can occur. diff --git a/qmk/keyboards/sofle_choc/keymaps/custom/rules.mk b/qmk/keyboards/sofle_choc/keymaps/custom/rules.mk index eca5361..2703553 100644 --- a/qmk/keyboards/sofle_choc/keymaps/custom/rules.mk +++ b/qmk/keyboards/sofle_choc/keymaps/custom/rules.mk @@ -3,4 +3,10 @@ SPLIT_KEYBOARD = yes TAP_DANCE_ENABLE = yes CAPS_WORD_ENABLE = yes KEY_OVERRIDE_ENABLE = yes -SRC += quad_tapdance.c keycodes.c overrides.c +RGBLIGHT_ENABLE = no +BACKLIGHT_ENABLE = no + +RGB_MATRIX_ENABLE = yes +RGB_MATRIX_DRIVER = ws2812 + +SRC += quad_tapdance.c keycodes.c overrides.c lighting.c |