// Nick Gammon's Blink Fader Class Example
// See https://gammon.com.au/blink "Example fading sketch"
// https://wokwi.com/projects/422223289091571713
// https://forum.arduino.cc/t/wokwi-simulations-for-arduino-built-in-examples/1304754/10
// Example of fading multiple LEDs at different rates without delays
// Author: Nick Gammon
// Date: 27 December 2012
#include "LedFader.h"
// set up some LEDs
// pin min max millis
LedFader strobe (3, 10, 200, 1000);
LedFader navigation (5, 10, 200, 500);
LedFader torpedoes (6, 10, 200, 250);
void setup()
{
strobe.begin ();
navigation.begin ();
torpedoes.begin ();
} // end of setup
void loop()
{
// update lights
strobe.update ();
navigation.update ();
torpedoes.update ();
// do other useful stuff here ...
} // end of loop