Hardware Reference
In-Depth Information
Solution
What you will need for this recipe:
▪ Breadboard and jumper wires (see “Prototyping Equipment” )
▪ Nokia 5110 LCD (see “Miscellaneous” )
▪ 220 Ω resistor (see “Resistors” )
The Nokia 5110 LCD runs off of 3.3 V, so you can wire it directly to the Bone ( Figure 3-9 ).
Figure 3-9. Wiring a Nokia 5110 LCD display
The drivers for the 5110 are in the Node Packaged Modules repository. Get and install them
by running the following commands:
bone# npm install -g nokia5110
bone# cd /usr/local/lib/node_modules/nokia5110
bone# ln -s LCD_5110.js nokia5110.js
bone# cp lcdTest.js /tmp
bone# cd -
bone# mv /tmp/lcdTest.js nokia5110Test.js
Edit nokia5110Test.js so that the first few lines specify how it's wired (as shown in
Example 3-7 ) and then run the code.
Search WWH ::




Custom Search