So you have gotten one LED to blink on and off –
fantastic! Now it's time to up the stakes a little bit – by
connecting EIGHT LEDS AT ONCE. We'll also give
our RedBoard a little test by creating various lighting
sequences. This circuit is a great setup to start practicing
writing your own programs and getting a feel for the
way RedBoard works.
Along with controlling the LEDs, you’ll learn about a
couple programming tricks that keep your code neat
and tidy:
for() loops
- used when you want to run a piece of
code several times
arrays[ ]
- used to make managing variables easier by
grouping them together
Multiple LEDs
PARTS:
LED
8
X
Wire
10
X
330Ω
Resistor
8
X
CIRCUIT #4
4
IOREF
RES
ET
RESET
7-15V
SCL
SDA
AREF
GND
13
12
~11
~10
~9
8
7
~6
~5
4
~3
2
1
0
TX
RX
13
3.3V
5V
GND
GND
VIN
A0
A1
A2
A3
A4
A5
POWER
ANALOG IN
DIGIT
AL (PWM~)
ON
ISP
TX
RX
LEARN. SHARE. HACK.
Resistors (330 ohm)
(Orange-Orange-Brown)
LEDs
(Light-Emitting Diodes)
RedBoard
PIN 2
PIN 3
PIN 4
PIN 5
GND (Ground)
Resistors (330 ohm)
(Orange-Orange-Brown)
LEDs
(Light-Emitting Diodes)
RedBoard
PIN 6
PIN 7
PIN 8
PIN 9
GND (Ground)
Page 33
Summary of Contents for RedBoard
Page 13: ...Page 11...