Hello,
I am working on a project to use an arduino to control some WS2812 leds as blinkers (for the most part), I want to also be able to control the lights via bluetooth.
Right now I have an Uno with the BLE Shield (http://redbearlab.com/bleshield/) and I have modified the RGB Led example from Red Bear Lab that lets me change the color of an LED from my iphone. That part is working just fine... The part I am having a problem with is adding the code to read a pin connected to the flasher relay on the motorcycle and make the led's blink yellow.
I have attached the code. Right now when I connect something to the input pin the leds go yellow and goes non-responisve... I am missing a way to have the blinkers have priority over the rest of the functions, so no matter what state the leds are in, when i hit the blinker they work, then return to whatever state they were in (if riding will be off).
I am still learning coding and really need some guidance to move forward. Help would be greatly appreciated!!
Cheers,
Mike
ZeroCTRL_v0_3.ino (2.52 KB)