More Loops, and More Elegant Methods to Flash an LED

  • Bob Dukish


The delay command is useful in most circumstances and it is easy to understand, but a for loop works very well as a timer whenever we want to repeatedly run a command a specific number of times, or when we wish to accomplish an additional task, or easily break out of the delay. Using a timer for loop should fix our delay bug from Chapter 3.

Copyright information

© Bob Dukish 2018

Authors and Affiliations

  • Bob Dukish
    • 1
  1. 1.CanfieldUSA

Personalised recommendations