Programming Challenge Christmas Lights
Write a program to control a string of 20 christmas lights to the following specifications:
- There are 5 red, 5 blue, 5 yellow & 5 green lights
- The lights alternate red, blue, yellow, green
When turned on, there are 5 sequences that can be selected by clicking a button:
- All lights on constantly
- All lights on for 1 second, all lights off for 1 second
- All lights on for 0.5 second, all lights off for 0.5 second
- Red & yellow on for 1 second, blue & green on for 1 second
- Alternate: red, blue, yellow, green
You can use these Christmas Lights Images to help you.
Here is an example that I made with VB.net...