Skip to content
an example of tracking pin states and blinking lights from a loop
C++
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
asyncBlink.h
asyncBlink.ino
led13_blink.ino

README.md

arduino-async-blinc

an example of tracking pin states and blinking lights from a loop

Description

The purpose of this project is to demonstrate how to use a linked list on an Arduino. If pin 13 is used on an Arduino development board (the LED pin), then no wiring is required to demonstrate this project.

ckxng::asyncBlink::blink(led, time)

The first time this is called, it add the pin indicated by led to a linked list and set the pin state to LOW. When it is called again, it will compare the current timestamp with the timestamp of the last time the state was changed. If time milliseconds have passed, the state will be flipped from LOW to HIGH or HIGH to LOW.

You can’t perform that action at this time.