I wrote a basic program to get familiar with the basic atom pro. It’s suppose to light up an LED when the push button is press down and on release it turns the LED off. Well it works but it takes approximately two seconds to register if the button is pressed but its immediate turn off. Just wondering if someone can shed some light on why it takes so long to turn on and if there’s a solution to speed it up. It’s not the LED, I entered a debug line to see if it’s going into the IF statement as soon as I press the button and its not. Thanks
LOW P0
INPUT P4
MAIN
IF IN4 = 1 THEN
high P0
debug [bin IN4]
I tried this code and it works great without any delays. (even with the debug) Which IDE are you using? I would recommend you use the latest one 8.0.1.7 which is found in this thread.