Loops

Overview

Up until this point all of your code has been placed in your setup function. As you have probably noted, this function only runs once. The loop function is designed to run continuously. Any code place in this function will run continuously until power is removed from the Metro Mini.

Code

  1. Using a delay and your loop function, write a program to make your LED blink (on for one second and off for one second) continuously.

TEACHER CHECK _____

  1. Set up two LEDs on your breadboard on different pins. Make the LEDs flash alternately (i.e. one is on while the other is off). Both LEDs should never be off or on at the same time.

TEACHER CHECK _____