I was creating a simple if statement to the Blink to see if the phone app still connected. I set the A0 to Write and created an if statement.
void Loop()
if (sensePin == 255){
Blink LED’s
}
I flashed it to the Spark Core and then went to the phone app and set A0 to Write and dragged the variable over to 255 position. A second later I get a statement that I’m disconnected from the core. So… I reconnect by placing it in smart mode. It finds it and connects but after the app starts, I get the same error. I tried it on another Spark Core and it did the same thing. I’m wondering if the Spark Android App doesn’t run after it’s flashed with a program. when I do a factory reset, it hooks back up to the Android app and works fine… What gives? How can I use the app to activate an event… By the way… Placing a 3.4 V signal at A0 doesn’t cause the LED’s to flash… What am I doing wrong?