The WS2812B RGB LED shield
On this board we have the addressable
WS2812B
RGB LED. This LED is used in many LED chains.
The board uses D2 (GPIO 4) as data line. Since the same line is used as SDA for I2C modules it cannot be used in conjunction with I2C shields.
From the software point of view a driver is already available in the micro Python library named neopixel. Accessing the WS2812B using this driver is the pretty simple.
Here is a program demonstrating this:
https://iotworkshop.africa/pub/AFNOG/TheWS2812BRgbLED/ws2812.py.txt
Be careful with this LED and do not look into into when it emits light with full intensity. The light is so intense that you may damage your eyes!
--
Uli Raich - 2019-03-22
Comments