Giter VIP home page Giter VIP logo

nokia5110's People

Contributors

kkeller avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nokia5110's Issues

error: Unable to write to /sys/class/gpio/gpio117/value

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

multiple displays

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.