Exercise 1.1- Make LED Blink on and off every 3 seconds.
The introduced code for the light blinking includes a loop that directs the light to illuminate (digitalWrite(ledPin, HIGH)) for a duration of three seconds (delay(3000)), followed by deactivation (digitalWrite(ledPin, LOW)) for an additional three seconds. As a result, the light alternates between on and off states at three-second intervals.
Code and video are below
Content Rating
Is this a good/useful/informative piece of content to include in the project? Have your say!
You must login before you can post a comment. .