Back to Parent

Exercise 1.2 - Change the program to blink on and off 5 times then stop for 3 seconds. Each blink should be 0.5s (a half second)

 I modified the code by incorporating a nested loop within the loop() function to achieve five cycles of the light blinking on and off. Each blink is separated by a brief pause, and there's an additional 3-second delay after completing the five blinks.  

Code and video are below



Content Rating

Is this a good/useful/informative piece of content to include in the project? Have your say!

0