Data Sheet
YELLOW
-18-
Stoplight
Project 5
Build this circuit. Load sketch Stoplight into Snapino
TM
using
the programming instructions in project 3. Snapino
TM
controls the three Snap Circuits
®
LEDs (green, yellow, and
red), and turns them on and off like a stoplight. The yellow
light is only on for half as long, just like a normal stoplight.
Programming Note: This sketch uses
the int command to assign constant
values for the delay and LED connection
pins. Doing this makes them easy to
change later, because you would only
need to change them in one place,
instead of throughout the sketch. You can
change the blink rate by editing the delay
value, then reloading it into Snapino
TM
.
SCSNAPINO_Manual_112816.qxp 12/30/16 2:00 PM Page 19










