summaryrefslogtreecommitdiff
path: root/keyboards/teleport
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/teleport')
-rw-r--r--keyboards/teleport/native/config.h29
-rw-r--r--keyboards/teleport/native/info.json18
-rw-r--r--keyboards/teleport/native/native.c2
3 files changed, 18 insertions, 31 deletions
diff --git a/keyboards/teleport/native/config.h b/keyboards/teleport/native/config.h
index 99c82df12e..acb481bc96 100644
--- a/keyboards/teleport/native/config.h
+++ b/keyboards/teleport/native/config.h
@@ -14,9 +14,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-/* Use 3 dynamic keymap layers */
-#define DYNAMIC_KEYMAP_LAYER_COUNT 3
-
/* i2C Config */
#define I2C_DRIVER I2CD1
#define I2C1_SCL_PIN B6
@@ -27,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_DISABLE_WHEN_USB_SUSPENDED
-
-#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
@@ -95,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,
diff --git a/keyboards/teleport/native/native.c b/keyboards/teleport/native/native.c
index ab6d588de7..b11b63f1f6 100644
--- a/keyboards/teleport/native/native.c
+++ b/keyboards/teleport/native/native.c
@@ -25,7 +25,7 @@ void keyboard_post_init_kb(void) {
}
#ifdef RGB_MATRIX_ENABLE
-const is31fl3733_led_t PROGMEM g_is31fl3733_leds[RGB_MATRIX_LED_COUNT] = {
+const is31fl3733_led_t PROGMEM g_is31fl3733_leds[IS31FL3733_LED_COUNT] = {
/* Refer to IS31 manual for these locations
* driver
* | R location