Hey,

I just purchased a beaglebone black and have just began tinkering around 
with it. I have gotten a button to turn on and off a led light but wanted 
to alter this a bit. I have written some code to turn the led on after the 
first push, blink after the second, and turn off after the third. The code 
has some issues because depending on the length of the time.sleeps and the 
time the third button push occurs the led may not turn off. I have attached 
a screenshot of the code I have. What can I do to better pick up the third 
button push?

<https://lh6.googleusercontent.com/-EJ0BAKFDieE/UqOSnnmIezI/AAAAAAAAAAo/VrtmiYnbJeo/s1600/Screen+Shot+2013-12-07+at+1.20.01+PM.png>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to