//
"//"
in
front
of
them).
To
try
different
LED
displays,
re
move
//
the
"//"
in
front
of
the
ones
you'd
like
to
run,
and
add
"//"
//
in
front
of
those
you
don't
to
comment
out
(and
disable)
those
//
lines.
//
Light
up
all
the
LEDs
in
turn
oneAfterAnotherNoLoop();
//
Same
as
oneAfterAnotherNoLoop,
but
less
typing
//oneAfterAnotherLoop();
//
Turn
on
one
LED
at
a
time,
scrolling
down
the
line
//oneOnAtATime();
//
Light
the
LEDs
middle
to
the
edge
s
//pingPong();
//
Chase
lights
like
you
see
on
signs
//marquee();
//
Blink
LEDs
randomly
//randomLED();
}
/*
oneAfterAnotherNoLoop()
This
function
will
light
one
LED,
delay
for
delayTime,
then
li
ght
the
next
LED,
and
repeat
until
all
the
LEDs
are
on.
It
will
th
en
turn
them
off
in
the
reverse
order.
*/
void oneAfterAnotherNoLoop()
{
//
time
(milliseconds)
to
pause
between
LEDs
int delayTime
= 100;
//
turn
all
the
LEDs
on:
digitalWrite(ledPins[0],
HIGH);
//Turns
on
LED
#0
(pin
4)
delay(delayTime);
//wait
delayTime
millisecon
ds
digitalWrite(ledPins[1],
HIGH);
//Turns
on
LED
#1
(pin
5)
delay(delayTime);
//wait
delayTime
millisecon
ds
digitalWrite(ledPins[2],
HIGH);
//Turns
on
LED
#2
(pin
6)
delay(delayTime);
//wait
delayTime
millisecon
ds
digitalWrite(ledPins[3],
HIGH);
//Turns
on
LED
#3
(pin
7)
delay(delayTime);
//wait
delayTime
millisecon
ds
digitalWrite(ledPins[4],
HIGH);
//Turns
on
LED
#4
(pin
8)
delay(delayTime);
//wait
delayTime
millisecon
ds
digitalWrite(ledPins[5],
HIGH);
//Turns
on
LED
#5
(pin
9)
delay(delayTime);
//wait
delayTime
millisecon
ds
Page 24 of 63