Reputation: 31
I bought this LED light on ebay. The model is CJMCU-KZQ.
My question is, how can I get it to work on a raspberry pi and python? I have looked everywhere but cannot find any documentation for it. Also, keep in mind that this light uses SDA/SCL I2C bus.
Upvotes: 1
Views: 1057
Reputation: 498
Looking at the ebay page, it suggests that it uses WS2812 driver to control the LED. Thankfully, that LED driver is pretty common, which means there is plenty of available (and open-soure) code for it.
Documentation for WS2812 driver: https://cdn-shop.adafruit.com/datasheets/WS2812.pdf
Tutorial on how to use LED strip with WS2812 driver: https://tutorials-raspberrypi.com/connect-control-raspberry-pi-ws2812-rgb-led-strips/
The tutorial is great as covers every step of the process. They end up using the rpi_ws281x python wrapper which has been compiled from c.
Upvotes: 1