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

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

Please see our privacy policy should you need more information or wish to adjust your settings.

Send a message
X

This message will be securely transmitted to Nutricherry LTD servers.