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

@@ -17,7 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
#define RGBLED_NUM 32
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8

View File

@@ -9,6 +9,7 @@
"device_version": "0.0.1"
},
"rgblight": {
"led_count": 32,
"sleep": true
},
"ws2812": {

View File

@@ -18,7 +18,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
#ifdef RGBLIGHT_ENABLE
#define RGBLED_NUM 32
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8

View File

@@ -11,6 +11,7 @@
"pin": "B6"
},
"rgblight": {
"led_count": 32,
"max_brightness": 200,
"sleep": true
},

View File

@@ -17,7 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
# define RGBLED_NUM 12
# define RGBLIGHT_HUE_STEP 8
# define RGBLIGHT_SAT_STEP 8
# define RGBLIGHT_VAL_STEP 8

View File

@@ -9,6 +9,7 @@
"device_version": "0.0.1"
},
"rgblight": {
"led_count": 12,
"sleep": true
},
"ws2812": {

View File

@@ -17,7 +17,3 @@
#pragma once
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
#ifdef RGBLIGHT_ENABLE
#define RGBLED_NUM 1
#endif

View File

@@ -3,6 +3,9 @@
"usb": {
"device_version": "0.0.1"
},
"rgblight": {
"led_count": 1
},
"ws2812": {
"pin": "F6"
},

View File

@@ -17,7 +17,3 @@
#pragma once
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
#ifdef RGBLIGHT_ENABLE
#define RGBLED_NUM 1
#endif

View File

@@ -3,6 +3,9 @@
"usb": {
"device_version": "0.0.2"
},
"rgblight": {
"led_count": 1
},
"ws2812": {
"pin": "D1"
},

View File

@@ -31,7 +31,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define RGBLIGHT_EFFECT_RGB_TEST
#define RGBLIGHT_EFFECT_ALTERNATING
#define RGBLIGHT_EFFECT_TWINKLE
#define RGBLED_NUM 8
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8

View File

@@ -8,6 +8,9 @@
"pid": "0x0472",
"device_version": "0.0.2"
},
"rgblight": {
"led_count": 8
},
"ws2812": {
"pin": "C6"
},