summaryrefslogtreecommitdiff
path: root/keyboards/system76/launch_1
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2024-01-16 01:03:55 +0000
committerGitHub <noreply@github.com>2024-01-16 01:03:55 +0000
commita90b45e8320389160ee1a649ccf95d6d820fd277 (patch)
tree2a7dbc7cdb6dc5d1ffef7511ad2307ea0a10db8c /keyboards/system76/launch_1
parentde6ae3408c798ab38ed09b6c91ae1684121f5ca2 (diff)
Migrate RGB Matrix config to info.json - RS (#22909)
Diffstat (limited to 'keyboards/system76/launch_1')
-rw-r--r--keyboards/system76/launch_1/config.h29
-rw-r--r--keyboards/system76/launch_1/info.json23
2 files changed, 23 insertions, 29 deletions
diff --git a/keyboards/system76/launch_1/config.h b/keyboards/system76/launch_1/config.h
index 1583af064e..986a4db76e 100644
--- a/keyboards/system76/launch_1/config.h
+++ b/keyboards/system76/launch_1/config.h
@@ -17,34 +17,7 @@
#pragma once
-#ifdef RGB_MATRIX_ENABLE
-# define RGB_MATRIX_LED_COUNT 84
-# define RGB_MATRIX_KEYPRESSES // Reacts to keypresses
-// # define RGB_MATRIX_KEYRELEASES // Reacts to keyreleases (instead of keypresses)
-// # define RGB_MATRIX_FRAMEBUFFER_EFFECTS // Enables framebuffer effects
-# define RGB_MATRIX_SLEEP // Turns off effects when suspended
-// Limit brightness to support USB-A at 0.5 A
-// TODO: Do this dynamically based on power source
-# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 176 // Limits maximum brightness of LEDs to 176 out of 255. If not defined, maximum brightness is set to 255
-# define RGB_MATRIX_DEFAULT_MODE RGB_MATRIX_RAINBOW_MOVING_CHEVRON // Sets the default mode, if none has been set
-# define RGB_MATRIX_DEFAULT_HUE 142 // Sets the default hue value, if none has been set
-# define RGB_MATRIX_DEFAULT_SAT 255 // Sets the default saturation value, if none has been set
-# define RGB_MATRIX_DEFAULT_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS // Sets the default brightness value, if none has been set
-# define RGB_MATRIX_DEFAULT_SPD 127 // Sets the default animation speed, if none has been set
-# define RGB_MATRIX_DISABLE_KEYCODES // Disables control of rgb matrix by keycodes (must use code functions to control the feature)
-
-# define ENABLE_RGB_MATRIX_CYCLE_ALL
-# define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
-# define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
-# define ENABLE_RGB_MATRIX_CYCLE_OUT_IN
-# define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
-# define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
-# define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
-# define ENABLE_RGB_MATRIX_CYCLE_SPIRAL
-# define ENABLE_RGB_MATRIX_RAINDROPS
-# define ENABLE_RGB_MATRIX_SPLASH
-# define ENABLE_RGB_MATRIX_MULTISPLASH
-#endif // RGB_MATRIX_ENABLE
+#define RGB_MATRIX_DISABLE_KEYCODES // Disables control of rgb matrix by keycodes (must use code functions to control the feature)
// Mechanical locking support; use KC_LCAP, KC_LNUM, or KC_LSCR instead in keymap
#define LOCKING_SUPPORT_ENABLE
diff --git a/keyboards/system76/launch_1/info.json b/keyboards/system76/launch_1/info.json
index eba3a115b8..536b310cc0 100644
--- a/keyboards/system76/launch_1/info.json
+++ b/keyboards/system76/launch_1/info.json
@@ -11,7 +11,28 @@
"pin": "E2"
},
"rgb_matrix": {
- "driver": "ws2812"
+ "animations": {
+ "cycle_all": true,
+ "cycle_left_right": true,
+ "cycle_up_down": true,
+ "cycle_out_in": true,
+ "cycle_out_in_dual": true,
+ "rainbow_moving_chevron": true,
+ "cycle_pinwheel": true,
+ "cycle_spiral": true,
+ "raindrops": true,
+ "splash": true,
+ "multisplash": true
+ },
+ "default": {
+ "animation": "rainbow_moving_chevron",
+ "hue": 142,
+ "sat": 255,
+ "speed": 127
+ },
+ "driver": "ws2812",
+ "max_brightness": 176,
+ "sleep": true
},
"matrix_pins": {
"cols": ["D7", "C7", "C6", "B6", "B5", "B4", "D6", "D4", "E6", "D5", "D3", "D2", "B7", "B0"],