Timed blink - IO Abstraction library example
20-10-2017
Visit associated GitHub repository
Visit reference documentation page

Timed blink is a version of well known Arduino blink example that is shipped with the standard IDE, but is redesigned to use the Abstraction and timer library.

Example circuit for the code is exactly the same a blink, and if you use the inbuilt LED pin (which it does by default) then there's no need to build any circuit whatsoever.

Instead of using delay() calls to set the duration of the led flash, it uses the task management library to schedule a task. In addition it uses the libraries IOAbstraction facilities to switch the LED on and off. This means that the LED could be located on a shift register or i2c IO device.

Source for the example is included in the examples section of the library,

Go back to the IoAbstraction page

These may be of interest

Want to let us know about something?

We use cookies to analyse traffic and to personalise content. We also embed Twitter and Youtube on some pages, these companies have their own privacy policies.

See the privacy policy and terms of use of this site should you need more information or wish to adjust your settings.