The Blinker library is designed for Arduino boards, providing a simple and efficient way to manage LED blinking patterns. It uses non-blocking code, allowing the Arduino to run other tasks while controlling LEDs. This library is ideal for projects that require LED notifications or indicators.
- Non-blocking LED blinking
- Customizable number of blinks and blink duration
- Easy to integrate and use in any Arduino project
- Download the library as a zip.
- Open the Arduino IDE, go to Sketch > Include Library > Add .ZIP Library, and select the downloaded zip file.
- Once installed, you can include the Blinker library in your sketches with
#include <Blinker.h>
.
Here's a simple example of how to use the Blinker library:
#include <Blinker.h>
Blinker blinker;
void setup() {
blinker.blink(); // Default to 1 blink of 50ms
}
void loop() {
blinker.handle();
}