How to use WS2812B LED lights with ROS 2 node
Hello everyone,
I am trying to control a WS2812B LED strip with a Raspberry Pi using ROS 2. I have looked for ROS 2 packages and Python libraries that can be used for this purpose, but I haven't been able to find anything that works well.
I came across the rpi_ws281x library, which seems to be a popular choice for controlling WS2812B LED strips with a Raspberry Pi. However, I am not sure how to integrate this library with a ROS 2 node.
Can anyone provide some guidance on how to use the rpi_ws281x library with a ROS 2 node? Specifically, how to subscribe to a ROS 2 topic for color messages and set the colors of the LEDs on the strip.
Thank you for your help.