Hello all. I’ve done some searching around Google and this forum and can’t seem to find an answer to m problem. I have a timer project that requires me to control an led from my Arduino Uno using an Android app that I created. I have been using delay for the shorter times but I have times as long as 10 minutes that I need to run and be able to cancel at any time. I found a great code from the bald engineer that I was able to tweak slightly to work with the bluetooth (his code is written for a pushbutton) but no matter what I try I can not get the led to cancel. I attached the code that I’ve been working with. ‘2’ is the OFF that I am trying to send from the bluetooth the cancel the led. Any input is greatly appreciated.
test3.ino (1.6 KB)