Skip to content

Commit

Permalink
Fix the description of the SK6812 LED in the example code.
Browse files Browse the repository at this point in the history
The SK6812 expects the data for the green LED first, then red and
finally blue. It should be described as a GRB LED.
  • Loading branch information
docbacardi committed Feb 7, 2024
1 parent 96a6410 commit 504e268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/modules/ws2812.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ ws2812.write({pin = 4, data = string.char(255, 0, 0, 255, 0, 0)},
```

```lua
ws2812.write({pin = 8, reset = 800, t0h = 3, t0l = 9, t1h = 6, t1l = 6, data = string.char(1, 0, 0)}) -- turn the SK6812 RGB led on the ESP32-C3-DevKitM-1 to green
ws2812.write({pin = 8, reset = 800, t0h = 3, t0l = 9, t1h = 6, t1l = 6, data = string.char(1, 0, 0)}) -- turn the SK6812 GRB led on the ESP32-C3-DevKitM-1 to green
```

# Buffer module
Expand Down

0 comments on commit 504e268

Please sign in to comment.