Controlling two External LEDs
In this project, you'll learn how to connect and control two external LEDs.
Parts needed:
| ||
1 | Making the connections
Connect two LEDs to the Arduino board, one to pin 2 and one to pin 3.
| |
2 | Create a new Bare Minimum program by selecting File from the menu
Then type in this program. Notice that this program is very similar to the one external LED program. The only difference is that all of the commands are duplicated, one set for controlling the LED connected to pin 2, and the other set for controlling the LED connected to pin 3. | |
3 | Run the program. You should see both of the external LEDs blink on for 1 second and then off for another second. | |