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

@ -1,7 +1,5 @@
#pragma once
#define RGBLED_NUM 12
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8

View file

@ -4,6 +4,9 @@
"pid": "0x0001",
"device_version": "0.0.1"
},
"rgblight": {
"led_count": 12
},
"ws2812": {
"pin": "D3"
},

View file

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

View file

@ -4,6 +4,9 @@
"pid": "0x0011",
"device_version": "0.0.2"
},
"rgblight": {
"led_count": 12
},
"ws2812": {
"pin": "A8"
},

View file

@ -25,7 +25,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define WS2812_SPI_MOSI_PAL_MODE 0
#define WS2812_SPI_SCK_PIN A5
#define WS2812_SPI_SCK_PAL_MODE 0
#define RGBLED_NUM 16
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8

View file

@ -18,6 +18,9 @@
"levels": 10,
"breathing": true
},
"rgblight": {
"led_count": 16
},
"ws2812": {
"pin": "A7",
"driver": "spi"

View file

@ -21,7 +21,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define BACKLIGHT_PAL_MODE 1
/* Underglow */
#define RGBLED_NUM 16
#define WS2812_EXTERNAL_PULLUP
#define RGBLIGHT_HUE_STEP 8

View file

@ -23,6 +23,9 @@
"num_lock": "B12",
"scroll_lock": "B13"
},
"rgblight": {
"led_count": 16
},
"ws2812": {
"pin": "A8"
},

View file

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

View file

@ -8,6 +8,9 @@
"pid": "0x0005",
"device_version": "0.0.2"
},
"rgblight": {
"led_count": 1
},
"ws2812": {
"pin": "D3"
},

View file

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

View file

@ -12,6 +12,9 @@
"cols": ["C4", "C5", "D2", "C6", "C7", "B7", "B6", "B5", "B4", "B3", "B2", "B1", "D1", "D4"],
"rows": ["C2", "D0", "B0", "D6", "D5"]
},
"rgblight": {
"led_count": 1
},
"ws2812": {
"pin": "D3"
},

View file

@ -16,7 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#define RGBLED_NUM 1
#define WS2812_EXTERNAL_PULLUP
#define RGBLIGHT_HUE_STEP 8

View file

@ -8,6 +8,9 @@
"pid": "0x000E",
"device_version": "0.0.4"
},
"rgblight": {
"led_count": 1
},
"ws2812": {
"pin": "A8"
},

View file

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

View file

@ -4,6 +4,9 @@
"pid": "0x0006",
"device_version": "0.0.1"
},
"rgblight": {
"led_count": 2
},
"ws2812": {
"pin": "D7"
},

View file

@ -16,7 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#define RGBLED_NUM 2
#define WS2812_EXTERNAL_PULLUP
#define RGBLIGHT_HUE_STEP 8

View file

@ -4,6 +4,9 @@
"pid": "0x000F",
"device_version": "0.0.2"
},
"rgblight": {
"led_count": 2
},
"ws2812": {
"pin": "A8"
},