Grove-RGB LED Ring (LED strip)
The Grove-RGB LED ring uses 3535 size LEDs, and the LEDs are embedded with embedded microcontrollers. Each WS2813 driver chip can be addressed and located inside the LED. Each LED is driven by a constant current, so even if the voltage changes, the color will be very consistent.
|RGB channel constant current||16mA/LED|
MaixPy has implemented the WS2812 driver in the modules module.
- To create a ws2812 object, only a single signal line is needed
from modules import ws2812 led_io, led_num = 24, 24 ws = ws2812(led_io, led_num)
- Set the color of a certain light and display it
for i in range(led_num): ws.set_led(i, (0, 0, 0)) ws.display()
API manual: modules.ws2812
Module details: Seeed Grove-LED_ring