Skip to content

Commit 548f453

Browse files
authored
Fix RGB documentation
1 parent d95c0a3 commit 548f453

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/readme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ leds.begin()
220220

221221
Sets the color of the index’s LED
222222
```cpp
223-
leds.setPixelColor(index, green, red, blue)
223+
leds.setPixelColor(index, red, green, blue)
224224
```
225225

226226
In case you have custom colors you can use this method too
@@ -250,7 +250,7 @@ leds.fill(color, firstLedToCount, count)
250250

251251
Save your custom color:
252252
```cpp
253-
uint32_t myColor = carrier.leds.Color(green, red, blue)
253+
uint32_t myColor = carrier.leds.Color(red, green, blue)
254254
```
255255

256256
### Pressure sensor - LPS22HB (Barometric)

0 commit comments

Comments
 (0)