diff options
| author | Ryan <fauxpark@gmail.com> | 2024-04-28 00:36:54 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-28 00:36:54 +1000 |
| commit | 0ff53b24984e88f385638e47ea076b4d2945c0c6 (patch) | |
| tree | 73c0e43df640c132507cb146447adfb7d0ed4b49 /quantum/rgblight | |
| parent | 8f8fffc1740be81fbfe4a07a74e9f03962c1062a (diff) | |
Rename `RGBW` define to `WS2812_RGBW` (#23585)
Diffstat (limited to 'quantum/rgblight')
| -rw-r--r-- | quantum/rgblight/rgblight.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/quantum/rgblight/rgblight.c b/quantum/rgblight/rgblight.c index 62137c020b..b0f2dfdc1d 100644 --- a/quantum/rgblight/rgblight.c +++ b/quantum/rgblight/rgblight.c | |||
| @@ -149,7 +149,7 @@ void setrgb(uint8_t r, uint8_t g, uint8_t b, rgb_led_t *led1) { | |||
| 149 | led1->r = r; | 149 | led1->r = r; |
| 150 | led1->g = g; | 150 | led1->g = g; |
| 151 | led1->b = b; | 151 | led1->b = b; |
| 152 | #ifdef RGBW | 152 | #ifdef WS2812_RGBW |
| 153 | led1->w = 0; | 153 | led1->w = 0; |
| 154 | #endif | 154 | #endif |
| 155 | } | 155 | } |
| @@ -652,7 +652,7 @@ void rgblight_setrgb(uint8_t r, uint8_t g, uint8_t b) { | |||
| 652 | led[i].r = r; | 652 | led[i].r = r; |
| 653 | led[i].g = g; | 653 | led[i].g = g; |
| 654 | led[i].b = b; | 654 | led[i].b = b; |
| 655 | #ifdef RGBW | 655 | #ifdef WS2812_RGBW |
| 656 | led[i].w = 0; | 656 | led[i].w = 0; |
| 657 | #endif | 657 | #endif |
| 658 | } | 658 | } |
| @@ -667,7 +667,7 @@ void rgblight_setrgb_at(uint8_t r, uint8_t g, uint8_t b, uint8_t index) { | |||
| 667 | led[index].r = r; | 667 | led[index].r = r; |
| 668 | led[index].g = g; | 668 | led[index].g = g; |
| 669 | led[index].b = b; | 669 | led[index].b = b; |
| 670 | #ifdef RGBW | 670 | #ifdef WS2812_RGBW |
| 671 | led[index].w = 0; | 671 | led[index].w = 0; |
| 672 | #endif | 672 | #endif |
| 673 | rgblight_set(); | 673 | rgblight_set(); |
| @@ -704,7 +704,7 @@ void rgblight_setrgb_range(uint8_t r, uint8_t g, uint8_t b, uint8_t start, uint8 | |||
| 704 | led[i].r = r; | 704 | led[i].r = r; |
| 705 | led[i].g = g; | 705 | led[i].g = g; |
| 706 | led[i].b = b; | 706 | led[i].b = b; |
| 707 | #ifdef RGBW | 707 | #ifdef WS2812_RGBW |
| 708 | led[i].w = 0; | 708 | led[i].w = 0; |
| 709 | #endif | 709 | #endif |
| 710 | } | 710 | } |
| @@ -905,7 +905,7 @@ void rgblight_set(void) { | |||
| 905 | led[i].r = 0; | 905 | led[i].r = 0; |
| 906 | led[i].g = 0; | 906 | led[i].g = 0; |
| 907 | led[i].b = 0; | 907 | led[i].b = 0; |
| 908 | #ifdef RGBW | 908 | #ifdef WS2812_RGBW |
| 909 | led[i].w = 0; | 909 | led[i].w = 0; |
| 910 | #endif | 910 | #endif |
| 911 | } | 911 | } |
| @@ -933,7 +933,7 @@ void rgblight_set(void) { | |||
| 933 | start_led = led + rgblight_ranges.clipping_start_pos; | 933 | start_led = led + rgblight_ranges.clipping_start_pos; |
| 934 | #endif | 934 | #endif |
| 935 | 935 | ||
| 936 | #ifdef RGBW | 936 | #ifdef WS2812_RGBW |
| 937 | for (uint8_t i = 0; i < num_leds; i++) { | 937 | for (uint8_t i = 0; i < num_leds; i++) { |
| 938 | convert_rgb_to_rgbw(&start_led[i]); | 938 | convert_rgb_to_rgbw(&start_led[i]); |
| 939 | } | 939 | } |
| @@ -1263,7 +1263,7 @@ void rgblight_effect_snake(animation_status_t *anim) { | |||
| 1263 | ledp->r = 0; | 1263 | ledp->r = 0; |
| 1264 | ledp->g = 0; | 1264 | ledp->g = 0; |
| 1265 | ledp->b = 0; | 1265 | ledp->b = 0; |
| 1266 | # ifdef RGBW | 1266 | # ifdef WS2812_RGBW |
| 1267 | ledp->w = 0; | 1267 | ledp->w = 0; |
| 1268 | # endif | 1268 | # endif |
| 1269 | for (j = 0; j < RGBLIGHT_EFFECT_SNAKE_LENGTH; j++) { | 1269 | for (j = 0; j < RGBLIGHT_EFFECT_SNAKE_LENGTH; j++) { |
| @@ -1323,7 +1323,7 @@ void rgblight_effect_knight(animation_status_t *anim) { | |||
| 1323 | led[i].r = 0; | 1323 | led[i].r = 0; |
| 1324 | led[i].g = 0; | 1324 | led[i].g = 0; |
| 1325 | led[i].b = 0; | 1325 | led[i].b = 0; |
| 1326 | # ifdef RGBW | 1326 | # ifdef WS2812_RGBW |
| 1327 | led[i].w = 0; | 1327 | led[i].w = 0; |
| 1328 | # endif | 1328 | # endif |
| 1329 | } | 1329 | } |
| @@ -1337,7 +1337,7 @@ void rgblight_effect_knight(animation_status_t *anim) { | |||
| 1337 | led[cur].r = 0; | 1337 | led[cur].r = 0; |
| 1338 | led[cur].g = 0; | 1338 | led[cur].g = 0; |
| 1339 | led[cur].b = 0; | 1339 | led[cur].b = 0; |
| 1340 | # ifdef RGBW | 1340 | # ifdef WS2812_RGBW |
| 1341 | led[cur].w = 0; | 1341 | led[cur].w = 0; |
| 1342 | # endif | 1342 | # endif |
| 1343 | } | 1343 | } |
