aboutsummaryrefslogtreecommitdiff
path: root/docs/feature_rgblight.md
diff options
context:
space:
mode:
authorRyan <[email protected]>2023-09-04 10:19:59 +1000
committerGitHub <[email protected]>2023-09-04 01:19:59 +0100
commit41bd4e35a09cc50f45112074d2b776254a3a17f8 (patch)
tree9258c5ad40dda232e3b8271942b436bdafa6f115 /docs/feature_rgblight.md
parent1e3095f9cce45fab0a566e692b1ff1c2047cfa08 (diff)
downloadqmk_firmware-41bd4e35a09cc50f45112074d2b776254a3a17f8.tar.gz
qmk_firmware-41bd4e35a09cc50f45112074d2b776254a3a17f8.zip
Clean up RGB LED type (#21859)
Diffstat (limited to 'docs/feature_rgblight.md')
-rw-r--r--docs/feature_rgblight.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/feature_rgblight.md b/docs/feature_rgblight.md
index 39b7e6a6f1..2bdfe6a7cf 100644
--- a/docs/feature_rgblight.md
+++ b/docs/feature_rgblight.md
@@ -370,9 +370,9 @@ If you need to change your RGB lighting in code, for example in a macro to chang
Example:
```c
-sethsv(HSV_WHITE, (LED_TYPE *)&led[0]); // led 0
-sethsv(HSV_RED, (LED_TYPE *)&led[1]); // led 1
-sethsv(HSV_GREEN, (LED_TYPE *)&led[2]); // led 2
+sethsv(HSV_WHITE, (rgb_led_t *)&led[0]); // led 0
+sethsv(HSV_RED, (rgb_led_t *)&led[1]); // led 1
+sethsv(HSV_GREEN, (rgb_led_t *)&led[2]); // led 2
rgblight_set(); // Utility functions do not call rgblight_set() automatically, so they need to be called explicitly.
```