Back to Parent

Making light blink every 3 seconds (video/code: below):

The added code to make the light blink involves a loop that is coded in to command the light to turn on (digitalWrite(ledPin, HIGH)) for three seconds (delay(3000)) and then turn off (digitalWrite(ledPin, LOW)) for another three seconds. This made the light go on and off at three-second intervals. Physically everything has stayed the same. 


Content Rating

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

0