summaryrefslogtreecommitdiff
path: root/keyboards/teleport/native
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2024-01-16 01:16:31 +0000
committerGitHub <noreply@github.com>2024-01-16 01:16:31 +0000
commite1f59a6efc793522155db35155f6fbdc0504d504 (patch)
tree07538fce2ce1f3c6a49895a8e04864615f6490ab /keyboards/teleport/native
parente30d0e52871ce46e6f94d5535c1d60aa75668fe5 (diff)
Migrate RGB Matrix config to info.json - TUVW (#22910)
Diffstat (limited to 'keyboards/teleport/native')
-rw-r--r--keyboards/teleport/native/config.h26
-rw-r--r--keyboards/teleport/native/info.json18
2 files changed, 17 insertions, 27 deletions
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 <http://www.gnu.org/licenses/>.
#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 <http://www.gnu.org/licenses/>.
#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,