Migrate RGB Matrix config to info.json - TUVW (#22910)

This commit is contained in:
Joel Challis
2024-01-16 01:16:31 +00:00
committed by GitHub
parent e30d0e5287
commit e1f59a6efc
38 changed files with 465 additions and 801 deletions

View File

@@ -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

View File

@@ -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,