Here's the FlashLedTest program (sketch) built from the FlashLed class and using the classes from the user "libraries" directory for PlainLed and PulseLed. I changed the test program somewhat this time to treat the LEDs as more of a group. But remember that they are each acting independently of one another.
The test sequence runs as follows:
1. Green on for 2 seconds.
2. Green off, yellow on for 2 seconds.
3. Yellow off, red on for 2 seconds.
4. Red off, green flash for 4 seconds.
5. Green off, yellow flash for 4 seconds.
6. Yellow off, red flash for 4 seconds.
7. Red off, faster flash time, green flash for 3 seconds.
8. Yellow flash for 3 seconds.
9. Red flash for 3 seconds.
10. Green off for 3 seconds.
11. Yellow off for 3 seconds.
12. Red off for 3 seconds.
13. Set fade longer than flash time, green flash 3 times.
14. Yellow flash 3 times in 4 seconds.
15. Red flash 3 times in 4 seconds.
16. Turn on all LEDs 2 seconds.
17. Turn off all LEDs 2 seconds.
This sequence repeats with fading disabled every other time.
And here's the video demonstration:
That about wraps up this lesson on Arduino libraries. I hope this will be a useful resource for those in the forum who have ideas about using microprocessors on their layouts. Good luck with all that you attempt. I'm hoping to try a few things myself and will keep everyone appraised of how that goes.
-- Leo