By dave | October 20, 2017

Timed blink - IO Abstraction library example

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

Other pages within this category

comments powered by Disqus

This site uses cookies to analyse traffic, serve ads by Google AdSense (non-personalized in EEA/UK), and to record consent. We also embed Twitter, Youtube and Disqus content on some pages, these companies have their own privacy policies.

Our privacy policy applies to all pages on our site

Should you need further guidance on how to proceed: External link for information about cookie management.