Hardware Reference
In-Depth Information
Solution
There are a number of nice LED matrices that allow you to control several LEDs via one
interface. This solution uses an Adafruit Bicolor 8x8 LED Square Pixel Matrix w/I 2 C
Backpack .
To make this recipe, you will need:
▪ Breadboard and jumper wires (see “Prototyping Equipment” )
▪ Two 4.7 kΩ resistors (see “Resistors” )
▪ I 2 C LED matrix (see “Opto-Electronics” )
The LED matrix is a 5 V device, but you can drive it from 3.3 V. Wire, as shown in Fig-
ure 3-6 .
Figure 3-6. Wiring an i2c LED matrix
Recipe 2.9 shows how to use i2cdetect to discover the address of an I 2 C device. It also
describes the difference between how Linux numbers the I 2 C buses ( 0 and 1 ) versus how
BoneScript numbers them ( 1 and 2 ). Let's see how your display shows up.
Search WWH ::




Custom Search