summaryrefslogtreecommitdiff
path: root/keyboards/teleport/native
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/teleport/native')
-rw-r--r--keyboards/teleport/native/config.h30
-rw-r--r--keyboards/teleport/native/info.json24
-rw-r--r--keyboards/teleport/native/native.c10
3 files changed, 23 insertions, 41 deletions
diff --git a/keyboards/teleport/native/config.h b/keyboards/teleport/native/config.h
index 99c82df12e..31d0025883 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,12 @@ 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 IS31FL3733_SDB_PIN B9
-#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 +68,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..3cd857a55d 100644
--- a/keyboards/teleport/native/info.json
+++ b/keyboards/teleport/native/info.json
@@ -11,7 +11,26 @@
"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
+ },
+ "build": {
+ "lto": true
},
"features": {
"bootmagic": true,
@@ -19,8 +38,7 @@
"console": false,
"extrakey": true,
"mousekey": true,
- "nkro": true,
- "lto": true
+ "nkro": true
},
"diode_direction": "ROW2COL",
"matrix_pins": {
diff --git a/keyboards/teleport/native/native.c b/keyboards/teleport/native/native.c
index ab6d588de7..5d8ccc6475 100644
--- a/keyboards/teleport/native/native.c
+++ b/keyboards/teleport/native/native.c
@@ -16,16 +16,8 @@
#include "quantum.h"
-/* This board has !SDB of the is31 wired to D2. Set high to enable */
-void keyboard_post_init_kb(void) {
- setPinOutput(B9);
- writePinHigh(B9);
-
- keyboard_post_init_user();
-}
-
#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