Data Sheet

-17-
Alternating Lights
Project 4
Build this circuit. Load sketch Alternating_Lights into
Snapino
TM
using the programming instructions in project 3.
Arduino controls the two Snap Circuits
®
LEDs (red and
green), and alternates turning them on and off.
Programming Note:
This sketch uses the int command (int is short for integer)
to assign a constant value that will be used within the
sketch. You can change the blink rate by editing the delay
value, then reloading it into Snapino
TM
.
The microcontroller on the Arduino UNO board lets you
control the LEDs in ways that would be difficult to do using
switches or other devices.
SCSNAPINO_Manual_112816.qxp 12/30/16 2:00 PM Page 18