Data Sheet

Learn About Programming
Here is how the sketch works:
void - this sets up a function.
setup - this is a function that initializes variables, pin modes,
etc.
pinMode(13, OUTPUT) - this configures digital pin 13 to act
as an output.
loop - this is a function for executing the following
commands in a continuous loop.
digitalWrite(13, HIGH) - this tells Snapino
TM
to put an
electrical voltage at digital pin 13 (where the Snap Circuits
®
green LED (D2) is connected). This voltage will light the
LED. A small yellow LED on the UNO circuit board also
lights; this LED is permanently connected to digital pin 13.
delay(500) - this tells Snapino
TM
to pause for 500
milliseconds, or 0.5 second, before performing the next
instruction.
digitalWrite(13, LOW) - this tells Snapino
TM
to turn off or
remove any voltage at digital pin 13. This will turn off the
green LED (and the yellow LED on the UNO board).
Comments: All information after // is Comments. Comments
are a description of what the sketch is doing, to help you
understand and remember it. Comments are automatically
removed before the sketch is downloaded to Snapino
TM
.
-16-
You can edit the sketch to change parameters or commands if
desired. The editing procedure is similar to other word
processors. You may also type in a completely new sketch. To
save sketches you have created or modified, use
Save As under
File menu.
Only valid sketches (without errors) may be downloaded, or a
downloading error will result. You can check for errors by clicking the
Verify box. Verify also tells you how much memory the sketch uses.
Explanations for all Arduino commands, and some basic
information about programming, can be found under the
Help
menu or on the Arduino website (www.arduino.cc).
You can change the blink rate by changing the delay value from 500 to
something else. Try 200 (faster blinking) or 2000 (slower blinking). Change the
value at both locations in the sketch, then upload the sketch into Snapino
TM
.
SCSNAPINO_Manual_112816.qxp 12/30/16 2:00 PM Page 17