Skip to content

Commit

Permalink
Move RGBLED_NUM to data driven (qmk#21278)
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark authored and thismarvin committed Sep 27, 2023
1 parent 97ce107 commit b643b96
Show file tree
Hide file tree
Showing 2,160 changed files with 2,232 additions and 2,057 deletions.
1 change: 0 additions & 1 deletion keyboards/0_sixty/underglow/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@


/* underglow */
#define RGBLED_NUM 24
#define RGBLIGHT_EFFECT_BREATHING
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
Expand Down
1 change: 1 addition & 0 deletions keyboards/0_sixty/underglow/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"pin": "B6"
},
"rgblight": {
"led_count": 24,
"max_brightness": 185
}
}
1 change: 0 additions & 1 deletion keyboards/0xcb/1337/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#define TAP_CODE_DELAY 10

#define RGBLED_NUM 4
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8
Expand Down
1 change: 1 addition & 0 deletions keyboards/0xcb/1337/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"led": "B0"
},
"rgblight": {
"led_count": 4,
"sleep": true
},
"ws2812": {
Expand Down
2 changes: 0 additions & 2 deletions keyboards/0xcb/tutelpad/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#pragma once

#define RGBLED_NUM 4 // Number of LEDs connected

#define RGBLIGHT_HUE_STEP 10 // The number of steps to cycle through the hue by
#define RGBLIGHT_SAT_STEP 17 // The number of steps to increment the saturation by
#define RGBLIGHT_VAL_STEP 17 // The number of steps to increment the brightness by
Expand Down
1 change: 1 addition & 0 deletions keyboards/0xcb/tutelpad/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"matrix": [1, 0]
},
"rgblight": {
"led_count": 4,
"sleep": true
},
"ws2812": {
Expand Down
2 changes: 0 additions & 2 deletions keyboards/10bleoledhub/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.*/

#define SSD1306OLED

#define RGBLED_NUM 4

#define RGBLIGHT_EFFECT_BREATHING
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
Expand Down
3 changes: 3 additions & 0 deletions keyboards/10bleoledhub/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"pid": "0x7C99",
"device_version": "0.0.1"
},
"rgblight": {
"led_count": 4
},
"ws2812": {
"pin": "B7"
},
Expand Down
2 changes: 0 additions & 2 deletions keyboards/1k/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
*/
#pragma once

#define RGBLED_NUM 1

// Save as much space as we can...
#define LAYER_STATE_8BIT
#define NO_ACTION_LAYER
Expand Down
3 changes: 3 additions & 0 deletions keyboards/1k/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"pid": "0x0001",
"device_version": "0.0.1"
},
"rgblight": {
"led_count": 1
},
"ws2812": {
"pin": "B2"
},
Expand Down
1 change: 0 additions & 1 deletion keyboards/1upkeyboards/1up60hse/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,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 14
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8
Expand Down
1 change: 1 addition & 0 deletions keyboards/1upkeyboards/1up60hse/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"breathing": true
},
"rgblight": {
"led_count": 14,
"sleep": true
},
"ws2812": {
Expand Down
1 change: 0 additions & 1 deletion keyboards/1upkeyboards/1up60hte/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,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 14
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8
3 changes: 3 additions & 0 deletions keyboards/1upkeyboards/1up60hte/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
"caps_lock": "B6",
"on_state": 0
},
"rgblight": {
"led_count": 14
},
"ws2812": {
"pin": "F0"
},
Expand Down
1 change: 0 additions & 1 deletion keyboards/1upkeyboards/1up60rgb/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#define RGBLIGHT_EFFECT_RGB_TEST
#define RGBLIGHT_EFFECT_ALTERNATING
#define RGBLIGHT_EFFECT_TWINKLE
#define RGBLED_NUM 16
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8
3 changes: 3 additions & 0 deletions keyboards/1upkeyboards/1up60rgb/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
"pin": "B6",
"levels": 5
},
"rgblight": {
"led_count": 16
},
"ws2812": {
"pin": "E2"
},
Expand Down
1 change: 0 additions & 1 deletion keyboards/1upkeyboards/pi60_hse/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

#define DYNAMIC_KEYMAP_LAYER_COUNT 10
#define RGB_MATRIX_LED_COUNT 16
#define RGBLED_NUM 16
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
#define RGB_MATRIX_KEYPRESSES
#define RGB_DISABLE_WHEN_USB_SUSPENDED
Expand Down
3 changes: 1 addition & 2 deletions keyboards/1upkeyboards/super16/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#pragma once

# define RGBLED_NUM 16 // Add 12 if attaching the RGB LED ring
# define RGB_MATRIX_LED_COUNT RGBLED_NUM
# define RGB_MATRIX_LED_COUNT 16
# ifdef RGBLIGHT_ENABLE
# define RGBLIGHT_HUE_STEP 8
# define RGBLIGHT_SAT_STEP 8
Expand Down
1 change: 1 addition & 0 deletions keyboards/1upkeyboards/super16/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"pin": "D3"
},
"rgblight": {
"led_count": 16,
"sleep": true
},
"rgb_matrix": {
Expand Down
1 change: 0 additions & 1 deletion keyboards/1upkeyboards/sweet16/v1/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#define RGBLIGHT_EFFECT_RGB_TEST
#define RGBLIGHT_EFFECT_ALTERNATING
#define RGBLIGHT_EFFECT_TWINKLE
#define RGBLED_NUM 1
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8
3 changes: 3 additions & 0 deletions keyboards/1upkeyboards/sweet16/v1/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"pid": "0x0161",
"device_version": "0.0.1"
},
"rgblight": {
"led_count": 1
},
"ws2812": {
"pin": "B1"
},
Expand Down
1 change: 0 additions & 1 deletion keyboards/1upkeyboards/sweet16v2/kb2040/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#define DYNAMIC_KEYMAP_LAYER_COUNT 10
#define RGB_MATRIX_LED_COUNT 20
#define RGBLED_NUM 20
#define RGB_MATRIX_KEYPRESSES
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
#define RGB_DISABLE_WHEN_USB_SUSPENDED
Expand Down
1 change: 0 additions & 1 deletion keyboards/25keys/aleth42/rev0/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#pragma once

#define RGBLED_NUM 6
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8
Expand Down
1 change: 1 addition & 0 deletions keyboards/25keys/aleth42/rev0/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
]
},
"rgblight": {
"led_count": 6,
"sleep": true
},
"ws2812": {
Expand Down
1 change: 0 additions & 1 deletion keyboards/25keys/aleth42/rev1/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#pragma once

#define RGBLED_NUM 8
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8
Expand Down
1 change: 1 addition & 0 deletions keyboards/25keys/aleth42/rev1/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
]
},
"rgblight": {
"led_count": 8,
"sleep": true
},
"ws2812": {
Expand Down
1 change: 0 additions & 1 deletion keyboards/25keys/cassette42/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#pragma once

# define RGBLED_NUM 5
# define RGBLIGHT_HUE_STEP 8
# define RGBLIGHT_SAT_STEP 8
# define RGBLIGHT_VAL_STEP 8
Expand Down
1 change: 1 addition & 0 deletions keyboards/25keys/cassette42/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
]
},
"rgblight": {
"led_count": 5,
"sleep": true
},
"ws2812": {
Expand Down
1 change: 0 additions & 1 deletion keyboards/2key2crawl/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,4 @@
# define RGBLIGHT_EFFECT_RGB_TEST
# define RGBLIGHT_EFFECT_ALTERNATING
# define RGBLIGHT_EFFECT_TWINKLE
#define RGBLED_NUM 3
#endif
3 changes: 3 additions & 0 deletions keyboards/2key2crawl/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
{"pin_a": "D0", "pin_b": "D1", "resolution": 1}
]
},
"rgblight": {
"led_count": 3
},
"ws2812": {
"pin": "C6"
},
Expand Down
1 change: 0 additions & 1 deletion keyboards/40percentclub/luddite/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
# define RGBLIGHT_EFFECT_RGB_TEST
# define RGBLIGHT_EFFECT_ALTERNATING
# define RGBLIGHT_EFFECT_TWINKLE
#define RGBLED_NUM 8 // Number of LEDs
// #define RGBLIGHT_HUE_STEP 10
// #define RGBLIGHT_SAT_STEP 17
// #define RGBLIGHT_VAL_STEP 17
3 changes: 3 additions & 0 deletions keyboards/40percentclub/luddite/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
"pin": "B5",
"levels": 4
},
"rgblight": {
"led_count": 8
},
"ws2812": {
"pin": "B4"
},
Expand Down
1 change: 0 additions & 1 deletion keyboards/40percentclub/nano/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,3 @@ 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 6 // Number of LEDs
3 changes: 3 additions & 0 deletions keyboards/40percentclub/nano/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"pid": "0x0007",
"device_version": "0.0.1"
},
"rgblight": {
"led_count": 6
},
"ws2812": {
"pin": "D3"
},
Expand Down
1 change: 0 additions & 1 deletion keyboards/40percentclub/nori/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#define RGBLIGHT_EFFECT_RGB_TEST
#define RGBLIGHT_EFFECT_ALTERNATING
#define RGBLIGHT_EFFECT_TWINKLE
#define RGBLED_NUM 10
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8
Expand Down
3 changes: 3 additions & 0 deletions keyboards/40percentclub/nori/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
"backlight": {
"pin": "B5"
},
"rgblight": {
"led_count": 10
},
"ws2812": {
"pin": "B4"
},
Expand Down
1 change: 0 additions & 1 deletion keyboards/40percentclub/tomato/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#define RGBLIGHT_EFFECT_RGB_TEST
#define RGBLIGHT_EFFECT_ALTERNATING
#define RGBLIGHT_EFFECT_TWINKLE
#define RGBLED_NUM 30
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8
3 changes: 3 additions & 0 deletions keyboards/40percentclub/tomato/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"pid": "0x546F",
"device_version": "0.0.1"
},
"rgblight": {
"led_count": 30
},
"ws2812": {
"pin": "B5"
},
Expand Down
2 changes: 0 additions & 2 deletions keyboards/4pplet/aekiso60/rev_a/config.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions keyboards/4pplet/aekiso60/rev_a/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"pid": "0x0001",
"device_version": "0.0.1"
},
"rgblight": {
"led_count": 12
},
"ws2812": {
"pin": "D3"
},
Expand Down
1 change: 0 additions & 1 deletion keyboards/4pplet/aekiso60/rev_b/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions keyboards/4pplet/aekiso60/rev_b/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"pid": "0x0011",
"device_version": "0.0.2"
},
"rgblight": {
"led_count": 12
},
"ws2812": {
"pin": "A8"
},
Expand Down
1 change: 0 additions & 1 deletion keyboards/4pplet/eagle_viper_rep/rev_a/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions keyboards/4pplet/eagle_viper_rep/rev_a/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
"levels": 10,
"breathing": true
},
"rgblight": {
"led_count": 16
},
"ws2812": {
"pin": "A7",
"driver": "spi"
Expand Down
1 change: 0 additions & 1 deletion keyboards/4pplet/eagle_viper_rep/rev_b/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions keyboards/4pplet/eagle_viper_rep/rev_b/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
"num_lock": "B12",
"scroll_lock": "B13"
},
"rgblight": {
"led_count": 16
},
"ws2812": {
"pin": "A8"
},
Expand Down
Loading

0 comments on commit b643b96

Please sign in to comment.