kkeller / nokia5110 Goto Github PK
View Code? Open in Web Editor NEWCode to run Nokia 5110 LCD on the beaglebone
Code to run Nokia 5110 LCD on the beaglebone
Dear Sir,
I'am trying to run the testfile but it doesn't work. I use the Debian 9.3 2018-03-05 4GB SD IoT distribution and i get the following error's:
info: No pinmux for P9_25
error: Unable to write to /sys/class/gpio/gpio117/value
error: Unable to write to /sys/class/gpio/gpio117/value
/usr/local/lib/node_modules/bonescript/src/index.js:325
if(bitOrder == b.LSBFIRST) {
^
ReferenceError: b is not defined
at Object.f.shiftOut (/usr/local/lib/node_modules/bonescript/src/index.js:325:28)
at Object.exports.write (/var/lib/cloud9/Jeroen/nokia5110/LCD_5110.js:99:7)
at Object.exports.setup (/var/lib/cloud9/Jeroen/nokia5110/LCD_5110.js:60:13)
at Object. (/var/lib/cloud9/Jeroen/nokia5110/nokia5110Test.js:19:5)
at Module._compile (module.js:577:32)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
at Function.Module._load (module.js:445:3)
at Timeout.Module.runMain [as _onTimeout] (module.js:611:10)
at ontimeout (timers.js:386:11)
at tryOnTimeout (timers.js:250:5)
at Timer.listOnTimeout (timers.js:214:5)
How can I fix this?
Best regards,
Jeroen
I tried connecting a second and third display to the BBB, but it seems as if its impossible to write to each 5110 seperately.
although i'm setting it for each display (pin 17 on lcd.PIN_SCE & pin 14 on lcd2.PIN_SCE) the data is always written to ALL displays..
shouldn't it be possible to write to each display independently?
my code/wiring:
//lcd1.LED
lcd1.PIN_SCLK = "P9_22";
lcd1.PIN_SDIN = "P9_21"; //MOSI
lcd1.PIN_DC = "P9_15";
lcd1.PIN_RESET = "P9_16";
lcd1.PIN_SCE = "P9_17";
//lcd1.GND
//lcd1.VCC
lcd2.PIN_SCLK = "P9_22";
lcd2.PIN_SDIN = "P9_21"; //MOSI
lcd2.PIN_DC = "P9_15";
lcd2.PIN_RESET = "P9_16";
lcd2.PIN_SCE = "P9_14"; //different IO than lcd1!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.