Move RGBLED_NUM to data driven (#21278)

This commit is contained in:
Ryan
2023-06-18 14:39:07 +10:00
committed by GitHub
parent 7178645be7
commit b1783db4ea
2160 changed files with 2194 additions and 2058 deletions

View File

@@ -42,7 +42,6 @@
//#define NO_ACTION_ONESHOT
// #define WS2812_LED_N 2
// #define RGBLED_NUM WS2812_LED_N
// #define WS2812_TIM_N 2
// #define WS2812_TIM_CH 2
// #define PORT_WS2812 GPIOA

View File

@@ -45,8 +45,7 @@
/*
* WS2812 Underglow Matrix options
*/
#define RGBLED_NUM 9
#define RGB_MATRIX_LED_COUNT RGBLED_NUM
#define RGB_MATRIX_LED_COUNT 9
#define WS2812_PWM_DRIVER PWMD2
#define WS2812_PWM_CHANNEL 2

View File

@@ -8,6 +8,9 @@
"pid": "0xA4F9",
"device_version": "0.0.6"
},
"rgblight": {
"led_count": 9
},
"ws2812": {
"pin": "A1",
"driver": "pwm"

View File

@@ -46,8 +46,7 @@
/*
* WS2812 Underglow Matrix options
*/
#define RGBLED_NUM 9
#define RGB_MATRIX_LED_COUNT RGBLED_NUM
#define RGB_MATRIX_LED_COUNT 9
#define WS2812_PWM_DRIVER PWMD2
#define WS2812_PWM_CHANNEL 2

View File

@@ -8,6 +8,9 @@
"pid": "0xA4F9",
"device_version": "0.0.6"
},
"rgblight": {
"led_count": 9
},
"ws2812": {
"pin": "A1",
"driver": "pwm"