Last year we used a string of blue LED’s on our robot to indicate robot status to our drivers. This year we want to use RGB LED’s to indicate more events. The plan is to use a rioduino over the I2C bus (Either onboard, or through MXP slot), to control a strand of LEDs. I have seen the labview example, and the touchscreen example, but we program in JAVA. Also, I’m trying to simplify the code by only sending a single character per status to the Rioduino. I would have a case switch in the Rioduino C# code with the different LED patterns. The sticking point seems to be in the JAVA code for sending characters. I just can’t figure out I2C api notes. I can post both my arduino and java code if people are interested. Any notes, hints, example code or tutorials are appreciated.
Thanks, although, that doesn’t seem like enough code. How does the mode change? Does it send the entire string " Pulse_Color" or just a single character? Additionally, do you have your rioduino side code?
@Muskie Thanks for clarifying that and sharing your 'duino code. I’ll test it out as soon as the kids let me have the RIO for 10 mins.
@ mrEkko Super thanks for the JAVA code, that was the part I was struggling with the most. Ditto for 'duino code. One question, what was the object “LED” declared as? The compiler does not like that it does not have a declaration.
We have strips of NeoPixel LEDs (digital) and we use the Arudino_NeoPixel library. More information about the LEDs and the library can be found at the following links: https://www.adafruit.com/category/168