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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2160 changed files with 2194 additions and 2058 deletions

View file

@ -33,5 +33,4 @@ 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 5
#endif

View file

@ -12,6 +12,7 @@
"pin": "D3"
},
"rgblight": {
"led_count": 5,
"max_brightness": 128
},
"matrix_pins": {

View file

@ -33,5 +33,4 @@ 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
#endif

View file

@ -12,6 +12,7 @@
"pin": "D3"
},
"rgblight": {
"led_count": 8,
"max_brightness": 128
},
"matrix_pins": {

View file

@ -33,5 +33,4 @@ 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 11
#endif

View file

@ -12,6 +12,7 @@
"pin": "D3"
},
"rgblight": {
"led_count": 11,
"max_brightness": 128
},
"matrix_pins": {

View file

@ -33,5 +33,4 @@ 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 12
#endif

View file

@ -12,6 +12,7 @@
"pin": "D3"
},
"rgblight": {
"led_count": 12,
"max_brightness": 128
},
"matrix_pins": {

View file

@ -26,7 +26,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
//#define DIODE_DIRECTION
#define BACKLIGHT_PWM_MAP {2, 4, 8, 16, 40, 55, 70, 128, 200, 255}
#ifdef RGBLIGHT_ENABLE
#define RGBLED_NUM 15 // Number of LEDs
#endif

View file

@ -12,6 +12,9 @@
"driver": "custom",
"levels": 10
},
"rgblight": {
"led_count": 15
},
"ws2812": {
"pin": "D3"
},

View file

@ -28,7 +28,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 // Number of LEDs
#endif
#ifdef AUDIO_ENABLE

View file

@ -8,6 +8,9 @@
"pid": "0x6969",
"device_version": "0.0.1"
},
"rgblight": {
"led_count": 8
},
"ws2812": {
"pin": "D3"
},