From e1f59a6efc793522155db35155f6fbdc0504d504 Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Tue, 16 Jan 2024 01:16:31 +0000 Subject: Migrate RGB Matrix config to info.json - TUVW (#22910) --- keyboards/teleport/native/config.h | 26 -------------------------- keyboards/teleport/native/info.json | 18 +++++++++++++++++- 2 files changed, 17 insertions(+), 27 deletions(-) (limited to 'keyboards/teleport/native') diff --git a/keyboards/teleport/native/config.h b/keyboards/teleport/native/config.h index 0ae0493125..acb481bc96 100644 --- a/keyboards/teleport/native/config.h +++ b/keyboards/teleport/native/config.h @@ -24,36 +24,11 @@ along with this program. If not, see . #define I2C1_DUTY_CYCLE FAST_DUTY_CYCLE_16_9 #define I2C1_CLOCK_SPEED 400000 - -/* RGB Matrix driver config */ #define IS31FL3733_I2C_ADDRESS_1 IS31FL3733_I2C_ADDRESS_GND_GND #define IS31FL3733_I2C_ADDRESS_2 IS31FL3733_I2C_ADDRESS_GND_VCC -#define DRIVER_1_LED_TOTAL 46 -#define DRIVER_2_LED_TOTAL 39 -#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) - -#define RGB_MATRIX_LED_FLUSH_LIMIT 32 - -#define RGB_MATRIX_SLEEP -#define RGB_MATRIX_DEFAULT_SPD 40 -#define RGB_MATRIX_DEFAULT_VAL 220 #define RGB_MATRIX_DEFAULT_MODE RGB_MATRIX_CUSTOM_SINGLE_COLOR_RAINDROPS -#define RGB_MATRIX_KEYPRESSES -#define RGB_MATRIX_FRAMEBUFFER_EFFECTS - -// RGB Matrix Animation modes. Explicitly enabled -// For full list of effects, see: -// https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects -#define ENABLE_RGB_MATRIX_ALPHAS_MODS // 2 Alphas and mods have different colors -#define ENABLE_RGB_MATRIX_BREATHING // 3 Breath a static color -#define ENABLE_RGB_MATRIX_CYCLE_ALL // 4 Cycle all colors -#define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN // 5 Cycle vertically -#define ENABLE_RGB_MATRIX_CYCLE_SPIRAL // 6 Cycle in a spirals -#define ENABLE_RGB_MATRIX_TYPING_HEATMAP // 7 Heatmap of typing speed -#define ENABLE_RGB_MATRIX_SOLID_REACTIVE // 8 Static background, pressed keys light up -#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE // 9 Pressed keys and nearby keys light up #define ENABLE_RGB_MATRIX_CUSTOM_SINGLE_COLOR_RAINDROPS // 0 Single color raindrops, random keys lighting up at randomized intensity #define ENABLE_RGB_MATRIX_CUSTOM_STATIC_GAME_MODE // - Game mode sets the entire matrix (static) once, then stops LED refreshes @@ -92,6 +67,5 @@ along with this program. If not, see . #define RGB_MATRIX_TYPING_HEATMAP_SLIM #endif - /* Set HSE clock since it differs from F411 default */ #define STM32_HSECLK 16000000 diff --git a/keyboards/teleport/native/info.json b/keyboards/teleport/native/info.json index 87b97e5b2d..eaf9118ff9 100644 --- a/keyboards/teleport/native/info.json +++ b/keyboards/teleport/native/info.json @@ -11,7 +11,23 @@ "force_nkro": true }, "rgb_matrix": { - "driver": "is31fl3733" + "animations": { + "alphas_mods": true, + "breathing": true, + "cycle_all": true, + "cycle_up_down": true, + "cycle_spiral": true, + "typing_heatmap": true, + "solid_reactive": true, + "solid_reactive_multiwide": true + }, + "default": { + "speed": 40, + "val": 220 + }, + "driver": "is31fl3733", + "led_flush_limit": 32, + "sleep": true }, "features": { "bootmagic": true, -- cgit v1.2.3