---+ The rgb LED chain The LED employed on the !LoLin RGB LED card is very different from the one we used on the CPU card. In fact, the card uses cascadable, addressable !WS2812B color LED. rgb stands for red, blue, green. There are 3 very small colored LEDs with red, green and blue colors and by modifying the intensity of each LED different colors can be created. If all color components have the same intensity, the color observed will be white. If you want to know the details of how the !WS282B works, here is its [[https://cdn-shop.adafruit.com/datasheets/WS2812B.pdf][datasheet]]. Communicating with the !WS2812B can be quite complex because the communication timing must be strictly respected. Fortunately, the authors of !MicroPython supply a driver which make usage of the !WS2812B a child's game. This is how the board looks like: | <img alt="leds.png" height="440" src="%ATTACHURL%/leds.png" title="leds.png" width="444" /> | <img alt="ledRingBack.png" height="483" src="%ATTACHURL%/ledRingBack.png" title="ledRingBack.png" width="440" /> | The board is jumpered to use D0 or GPIO 26 for its communication with the ESP32. -- %USERSIG{UliRaich - 2022-10-16}% ---++ Comments %COMMENT%
Attachments
Attachments
Topic attachments
I
Attachment
History
Action
Size
Date
Who
Comment
png
ledRingBack.png
r1
manage
348.5 K
2022-10-16 - 21:25
UliRaich
png
leds.png
r1
manage
292.6 K
2022-10-16 - 21:24
UliRaich
This topic: AFNOG
>
ASP2022
>
MinimalLectures
>
RgbLEDChain
Topic revision: r1 - 2022-10-16 - UliRaich
Copyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback