Move RGBLED_NUM to data driven (#21278)
This commit is contained in:
parent
7178645be7
commit
b1783db4ea
2160 changed files with 2194 additions and 2058 deletions
|
|
@ -41,8 +41,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
# define SOFT_SERIAL_PIN D2
|
||||
#endif
|
||||
|
||||
#define RGBLED_NUM 20
|
||||
|
||||
#ifdef OLED_ENABLE
|
||||
# define OLED_DISPLAY_128X64
|
||||
# define SPLIT_OLED_ENABLE
|
||||
|
|
@ -51,7 +49,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
/* RGB matrix support */
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
# define SPLIT_TRANSPORT_MIRROR
|
||||
# define RGB_MATRIX_LED_COUNT RGBLED_NUM // Number of LEDs
|
||||
# define RGB_MATRIX_LED_COUNT 20 // Number of LEDs
|
||||
# define RGB_MATRIX_SPLIT { 10, 10 }
|
||||
# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 170
|
||||
# define RGB_DISABLE_WHEN_USB_SUSPENDED
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
"device_version": "0.0.1"
|
||||
},
|
||||
"rgblight": {
|
||||
"led_count": 20,
|
||||
"split_count": [10, 10]
|
||||
},
|
||||
"rgb_matrix": {
|
||||
|
|
|
|||
|
|
@ -47,8 +47,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
# define SOFT_SERIAL_PIN D2
|
||||
#endif
|
||||
|
||||
#define RGBLED_NUM 20
|
||||
|
||||
#ifdef OLED_ENABLE
|
||||
# define OLED_DISPLAY_128X64
|
||||
# define SPLIT_OLED_ENABLE
|
||||
|
|
@ -57,7 +55,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
/* RGB matrix support */
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
# define SPLIT_TRANSPORT_MIRROR
|
||||
# define RGB_MATRIX_LED_COUNT RGBLED_NUM // Number of LEDs
|
||||
# define RGB_MATRIX_LED_COUNT 20 // Number of LEDs
|
||||
# define RGB_MATRIX_SPLIT { 10, 10 }
|
||||
# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 170
|
||||
# define RGB_DISABLE_WHEN_USB_SUSPENDED
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
"device_version": "0.0.2"
|
||||
},
|
||||
"rgblight": {
|
||||
"led_count": 20,
|
||||
"split_count": [10, 10]
|
||||
},
|
||||
"rgb_matrix": {
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
// Not yet available in `info.json`
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
# define RGB_MATRIX_LED_COUNT RGBLED_NUM
|
||||
# define RGB_MATRIX_LED_COUNT 62
|
||||
# define RGB_MATRIX_SPLIT { 31, 31 }
|
||||
# define SPLIT_TRANSPORT_MIRROR
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue