Skip to content

Commit

Permalink
Move RGBLIGHT_HUE/SAT/VAL_STEP to data driven (#21292)
Browse files Browse the repository at this point in the history
Co-authored-by: Nick Brassel <nick@tzarc.org>
  • Loading branch information
fauxpark and tzarc authored Jun 24, 2023
1 parent 6545eb6 commit 4ae9bfd
Show file tree
Hide file tree
Showing 1,279 changed files with 1,245 additions and 2,182 deletions.
3 changes: 0 additions & 3 deletions keyboards/0xcb/1337/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#define TAP_CODE_DELAY 10

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

#pragma once

#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

#define RGBLIGHT_EFFECT_BREATHING // Enable all additional RGB animation modes
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
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": {
"hue_steps": 10,
"led_count": 4,
"sleep": true
},
Expand Down
3 changes: 0 additions & 3 deletions keyboards/1upkeyboards/1up60hse/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +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 RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
Expand Down
2 changes: 2 additions & 0 deletions keyboards/1upkeyboards/1up60hse/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
"breathing": true
},
"rgblight": {
"saturation_steps": 8,
"brightness_steps": 8,
"led_count": 14,
"sleep": true
},
Expand Down
3 changes: 0 additions & 3 deletions keyboards/1upkeyboards/1up60hte/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,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 RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8
2 changes: 2 additions & 0 deletions keyboards/1upkeyboards/1up60hte/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
"on_state": 0
},
"rgblight": {
"saturation_steps": 8,
"brightness_steps": 8,
"led_count": 14
},
"ws2812": {
Expand Down
3 changes: 0 additions & 3 deletions keyboards/1upkeyboards/1up60rgb/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,3 @@
#define RGBLIGHT_EFFECT_RGB_TEST
#define RGBLIGHT_EFFECT_ALTERNATING
#define RGBLIGHT_EFFECT_TWINKLE
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8
2 changes: 2 additions & 0 deletions keyboards/1upkeyboards/1up60rgb/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
"levels": 5
},
"rgblight": {
"saturation_steps": 8,
"brightness_steps": 8,
"led_count": 16
},
"ws2812": {
Expand Down
3 changes: 0 additions & 3 deletions keyboards/1upkeyboards/super16/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

# define RGB_MATRIX_LED_COUNT 16
# ifdef RGBLIGHT_ENABLE
# define RGBLIGHT_HUE_STEP 8
# define RGBLIGHT_SAT_STEP 8
# define RGBLIGHT_VAL_STEP 8
# define RGBLIGHT_EFFECT_BREATHING
# define RGBLIGHT_EFFECT_RAINBOW_MOOD
# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
Expand Down
2 changes: 2 additions & 0 deletions keyboards/1upkeyboards/super16/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
"pin": "D3"
},
"rgblight": {
"saturation_steps": 8,
"brightness_steps": 8,
"led_count": 16,
"sleep": true
},
Expand Down
3 changes: 0 additions & 3 deletions keyboards/1upkeyboards/sweet16/v1/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,3 @@
#define RGBLIGHT_EFFECT_RGB_TEST
#define RGBLIGHT_EFFECT_ALTERNATING
#define RGBLIGHT_EFFECT_TWINKLE
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8
2 changes: 2 additions & 0 deletions keyboards/1upkeyboards/sweet16/v1/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"device_version": "0.0.1"
},
"rgblight": {
"saturation_steps": 8,
"brightness_steps": 8,
"led_count": 1
},
"ws2812": {
Expand Down
3 changes: 0 additions & 3 deletions keyboards/25keys/aleth42/rev0/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#pragma once

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

#pragma once

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

#pragma once

# define RGBLIGHT_HUE_STEP 8
# define RGBLIGHT_SAT_STEP 8
# define RGBLIGHT_VAL_STEP 8
# define RGBLIGHT_EFFECT_BREATHING
# define RGBLIGHT_EFFECT_RAINBOW_MOOD
# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
Expand Down
2 changes: 2 additions & 0 deletions keyboards/25keys/cassette42/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
]
},
"rgblight": {
"saturation_steps": 8,
"brightness_steps": 8,
"led_count": 5,
"sleep": true
},
Expand Down
3 changes: 3 additions & 0 deletions keyboards/25keys/zinc/rev1/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"split": {
"soft_serial_pin": "D2"
},
"rgblight": {
"hue_steps": 10
},
"ws2812": {
"pin": "D3"
},
Expand Down
2 changes: 0 additions & 2 deletions keyboards/25keys/zinc/rev1/post_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#endif
#define RGBLIGHT_VAL_STEP 4
#endif
#define RGBLIGHT_HUE_STEP 10
#define RGBLIGHT_SAT_STEP 17

#if defined(RGBLIGHT_ENABLE) && !defined(IOS_DEVICE_ENABLE)
// USB_MAX_POWER_CONSUMPTION value
Expand Down
3 changes: 3 additions & 0 deletions keyboards/25keys/zinc/reva/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"split": {
"soft_serial_pin": "D2"
},
"rgblight": {
"hue_steps": 10
},
"ws2812": {
"pin": "D3"
},
Expand Down
2 changes: 0 additions & 2 deletions keyboards/25keys/zinc/reva/post_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#endif
#define RGBLIGHT_VAL_STEP 4
#endif
#define RGBLIGHT_HUE_STEP 10
#define RGBLIGHT_SAT_STEP 17

#if defined(RGBLIGHT_ENABLE) && !defined(IOS_DEVICE_ENABLE)
// USB_MAX_POWER_CONSUMPTION value
Expand Down
3 changes: 0 additions & 3 deletions keyboards/40percentclub/luddite/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,3 @@
# define RGBLIGHT_EFFECT_RGB_TEST
# define RGBLIGHT_EFFECT_ALTERNATING
# define RGBLIGHT_EFFECT_TWINKLE
// #define RGBLIGHT_HUE_STEP 10
// #define RGBLIGHT_SAT_STEP 17
// #define RGBLIGHT_VAL_STEP 17
3 changes: 0 additions & 3 deletions keyboards/40percentclub/nori/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@
#define RGBLIGHT_EFFECT_RGB_TEST
#define RGBLIGHT_EFFECT_ALTERNATING
#define RGBLIGHT_EFFECT_TWINKLE
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
Expand Down
2 changes: 2 additions & 0 deletions keyboards/40percentclub/nori/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
"pin": "B5"
},
"rgblight": {
"saturation_steps": 8,
"brightness_steps": 8,
"led_count": 10
},
"ws2812": {
Expand Down
3 changes: 0 additions & 3 deletions keyboards/40percentclub/tomato/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,3 @@
#define RGBLIGHT_EFFECT_RGB_TEST
#define RGBLIGHT_EFFECT_ALTERNATING
#define RGBLIGHT_EFFECT_TWINKLE
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8
2 changes: 2 additions & 0 deletions keyboards/40percentclub/tomato/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
"device_version": "0.0.1"
},
"rgblight": {
"saturation_steps": 8,
"brightness_steps": 8,
"led_count": 30
},
"ws2812": {
Expand Down
3 changes: 0 additions & 3 deletions keyboards/4pplet/aekiso60/rev_a/config.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#pragma once

#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8
#define RGBLIGHT_EFFECT_BREATHING
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
Expand Down
2 changes: 2 additions & 0 deletions keyboards/4pplet/aekiso60/rev_a/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"device_version": "0.0.1"
},
"rgblight": {
"saturation_steps": 8,
"brightness_steps": 8,
"led_count": 12
},
"ws2812": {
Expand Down
3 changes: 0 additions & 3 deletions keyboards/4pplet/aekiso60/rev_b/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once

#define WS2812_EXTERNAL_PULLUP
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8
#define RGBLIGHT_EFFECT_BREATHING
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
Expand Down
2 changes: 2 additions & 0 deletions keyboards/4pplet/aekiso60/rev_b/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"device_version": "0.0.2"
},
"rgblight": {
"saturation_steps": 8,
"brightness_steps": 8,
"led_count": 12
},
"ws2812": {
Expand Down
3 changes: 0 additions & 3 deletions keyboards/4pplet/eagle_viper_rep/rev_a/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +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 RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8
#define RGBLIGHT_EFFECT_BREATHING
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
Expand Down
2 changes: 2 additions & 0 deletions keyboards/4pplet/eagle_viper_rep/rev_a/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
"breathing": true
},
"rgblight": {
"saturation_steps": 8,
"brightness_steps": 8,
"led_count": 16
},
"ws2812": {
Expand Down
3 changes: 0 additions & 3 deletions keyboards/4pplet/eagle_viper_rep/rev_b/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* Underglow */
#define WS2812_EXTERNAL_PULLUP

#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8
#define RGBLIGHT_EFFECT_BREATHING
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
Expand Down
2 changes: 2 additions & 0 deletions keyboards/4pplet/eagle_viper_rep/rev_b/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
"scroll_lock": "B13"
},
"rgblight": {
"saturation_steps": 8,
"brightness_steps": 8,
"led_count": 16
},
"ws2812": {
Expand Down
3 changes: 0 additions & 3 deletions keyboards/4pplet/waffling60/rev_b/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once

#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8
#define RGBLIGHT_EFFECT_BREATHING
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
Expand Down
2 changes: 2 additions & 0 deletions keyboards/4pplet/waffling60/rev_b/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
"device_version": "0.0.2"
},
"rgblight": {
"saturation_steps": 8,
"brightness_steps": 8,
"led_count": 1
},
"ws2812": {
Expand Down
3 changes: 0 additions & 3 deletions keyboards/4pplet/waffling60/rev_c/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once

#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8
#define RGBLIGHT_EFFECT_BREATHING
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
Expand Down
2 changes: 2 additions & 0 deletions keyboards/4pplet/waffling60/rev_c/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
"rows": ["C2", "D0", "B0", "D6", "D5"]
},
"rgblight": {
"saturation_steps": 8,
"brightness_steps": 8,
"led_count": 1
},
"ws2812": {
Expand Down
4 changes: 0 additions & 4 deletions keyboards/4pplet/waffling60/rev_d/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once

#define WS2812_EXTERNAL_PULLUP

#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8
2 changes: 2 additions & 0 deletions keyboards/4pplet/waffling60/rev_d/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
"device_version": "0.0.4"
},
"rgblight": {
"saturation_steps": 8,
"brightness_steps": 8,
"led_count": 1
},
"ws2812": {
Expand Down
Loading

0 comments on commit 4ae9bfd

Please sign in to comment.