// Nick Gammon's Blink Flasher Class Example
// See https://gammon.com.au/blink "Example flashing sketch"
// https://wokwi.com/projects/422222628145695745
// https://forum.arduino.cc/t/wokwi-simulations-for-arduino-built-in-examples/1304754/10
// Example of flashing multiple LEDs at different rates without delays
// Author: Nick Gammon
// Date: 23 December 2012
#include "LedFlasher.h"
// set up some LEDs
LedFlasher floodLight (8, 200, 300);
LedFlasher shuttleBayDoors (9, 300, 600);
LedFlasher impulseEngine (10, 900, 100);
LedFlasher strobe (11, 500, 1000);
LedFlasher navigation (12, 1000, 2000);
LedFlasher torpedoes (13, 250, 500);
void setup()
{
floodLight.begin ();
shuttleBayDoors.begin ();
impulseEngine.begin ();
strobe.begin ();
navigation.begin ();
torpedoes.begin ();
} // end of setup
void loop()
{
// update lights
floodLight.update ();
shuttleBayDoors.update ();
impulseEngine.update ();
strobe.update ();
navigation.update ();
torpedoes.update ();
// do other useful stuff here ...
} // end of loop