This is great. James “Bald Engineer” gives a thorough walkthrough, line-by-line, of an Arduino sketch to use a pushbutton and millis() to delay events, without using delay()! It’s simple and simply explained on his blog.
In this example, we will use millis() to wait a few seconds after a pushbutton press to turn on an LED. Then a few seconds later, we will turn it off. All without using delay().
Join us every Wednesday night at 8pm ET for Ask an Engineer!
Maker Business — Transforming Today’s Bad Jobs into Tomorrow’s Good Jobs
Wearables — Hot glue free zone
Electronics — Have you met Charlie?
Biohacking — Ticks are Spreading an Allergy to Meat
No comments yet.
Sorry, the comment form is closed at this time.