Wednesday, 5 August 2015

Arduino Delay Function, and Why You Shouldn’t Use it

arduino-delay

When you first started learning how to develop for the Arduino, you probably built a product that works a little bit like this: Connected to your Arduino would be a single LED light. This would turn and off every second or so, and will continue until the Arduino is turned off. This is the “Hello World” program of Arduino, and perfectly illustrates how just a few lines of code can create something tangible. I’m also willing to bet you used the delay() function to define the intervals between the light turning on and off. But here’s the thing: while delay is...

Read the full article: Arduino Delay Function, and Why You Shouldn’t Use it



from MakeUseOf http://ift.tt/1gIpLlp
via IFTTT

No comments:

Post a Comment