Git Product home page Git Product logo

node-rpi-rgb-led-matrix's People

Contributors

felixmc avatar hzeller avatar keptan avatar sebleedelisle avatar zeitungen avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

node-rpi-rgb-led-matrix's Issues

So, how do I use it ? Getting "Cannot find module 'node-rpi-rgb-led-matrix'"

So, I am a total nodejs dummy, so you probably roll your eyes.

I tried the following, but it didn't work, presumably because npm did not install the module in a central place. Running npm i as root does also not yield the right result.

Is there anything else I need to do ? I presume I might need to add a path where the actual module is compiled or something, but if so, it might be worthwhile pointing that out in the README.md for idiots like me :)

node-rpi-rgb-led-matrix$ npm i
# ... compiles and stuff

node-rpi-rgb-led-matrix$ cat > testit.js
var LedMatrix = require("node-rpi-rgb-led-matrix");

var matrix = new LedMatrix(16);
matrix.fill(255, 50, 100);
matrix.setPixel(0, 0, 0, 50, 255);
^D

node-rpi-rgb-led-matrix$ sudo nodejs testit.js
module.js:340
    throw err;
          ^
Error: Cannot find module 'node-rpi-rgb-led-matrix'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
...

FrameBuffer expects <= 32, running a 64 x 64 panel

As the title suggests, I'm trying to run a 64 x 64 panel with this library. However, whenever I try to initialize my panel in the constructor and run the code, I receive a message stating that the FrameBuffer is expecting a size that is <= 32.

Is there anywhere I can alter this or is the code incompatible with 64 x 64 panels?

Thanks :)

Trouble compiling with node-gyp

I have a Raspberry Pi 2 Model B running latest Raspbian, Node.js v4.2.2, and node-gyp v3.2.1

When I try installing node-rpi-rgb-led-matrix via npm I get the following error: https://www.dropbox.com/s/5vbfcsa38wffwwo/Screenshot%202016-01-17%2012.31.16.png?dl=0

Here is the associated npm-debug.log: http://pastebin.com/mBr7AGP2

Afterwards I tried cloning the project in node_modules and building it manually with node-gyp, but it failed again with a different error code. Here's what the output looked like: https://www.dropbox.com/s/jhus8ciayk08kce/Screenshot%202016-01-17%2012.38.21.png?dl=0

Seems like it might be a problem with the project, but it could also be something specific to my environment. Let me know if there's anything I can do to help resolve this!

Update readme with more example

Pls may you add example for scroll some text or display and image? I'm not really skillful the a help will be more appreciated.
Thanks.

Assertion `handle->InternalFieldCount() > 0' failed.

Hey, I try to use this port but I can't run my test script. When I try to construct the LedMatrix object using

var display = LedMatrix(64, 2, 1);

then I get this back:

node: /home/pi/.node-gyp/8.8.1/include/node/node_object_wrap.h:77: void node::ObjectWrap::Wrap(v8::Local<v8::Object>): Assertion `handle->InternalFieldCount() > 0' failed.

Is this a bug? Thank you!

How do you run this as sudo?

I haven't actually tested this library yet but as far as I understand, the underlying native library needs to run under root for this to work. Do you run nodejs as root user or is there a way for nodejs to run under an ordinary user and still be able to control the LEDs?

Including GraphicsMagick++ flags into node makefile

Hello,

I was wondering how I would go about adding the GraphicsMagick++ flags from the hzeller makefile into the node makefile. My knowledge is still pretty limited but as I understand it GraphicsMagick++ only gets build when the flags are added. Any advice would be greatly appreciated!

p.s. Love the project!

Updating the npm node

https://www.npmjs.com/package/node-rpi-rgb-led-matrix
is still tracking the 3 year old version,
I plan on releasing some node modules pulling the new 64x64 enabled library as an npm dependency in the near future; and will be actively maintaining my fork as well.

I could either put my fork up as a new npm package, or could become a maintainer of this version on github/npm if you're up for it.

Not interacting with matrix

I'm using node v7.8.0 and the matrix doesn't appear to be lighting up no matter what I use. I've confirmed the size (32x32) and it's clear it's at least trying because it fails without sudo (i.e. requiring permissions, isn't just doing nothing).

I've essentially just been trying this:

> const LedMatrix = require('node-rpi-rgb-led-matrix')
undefined
> const matrix = new LedMatrix(32);
undefined
> matrix.getWidth()
32
> matrix.getHeight()
32
> matrix.fill(255, 50, 100);
undefined
> matrix.setPixel(0, 0, 255, 255, 255)
undefined

The python API works. The demos don't work if I directly go through node_module's into this library's rpi-rgb-led-matrix. Copying/linking to an existing (working) one makes the demos work at that location, but the node library still doesn't function.

No errors, hence why I'm confuzzled.

Trying to compile with GPIO slowdown

trying to compile with GPIO slowdown on node 0.10.3 using [email protected], but I'm running into this compile error...

Roys-iMac:node-rpi-rgb-led-matrix roykolak$ npm i

> [email protected] install /Users/roykolak/Projects/bigdots/node-rpi-rgb-led-matrix
> node-gyp rebuild

gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
make: *** No rule to make target `Release/obj.target/rpi-rgb-led-matrix/external/matrix/lib/bdf-font.o', needed by `Release/rpi-rgb-led-matrix.a'.  Stop.
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/roykolak/.nvm/v0.10.3/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:786:12)
gyp ERR! System Darwin 15.6.0
gyp ERR! command "node" "/Users/roykolak/.nvm/v0.10.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/roykolak/Projects/bigdots/node-rpi-rgb-led-matrix
gyp ERR! node -v v0.10.3
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok

npm ERR! Darwin 15.6.0
npm ERR! argv "node" "/Users/roykolak/.nvm/v0.10.3/bin/npm" "i"
npm ERR! node v0.10.3
npm ERR! npm  v3.10.7
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the node-rpi-rgb-led-matrix package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs node-rpi-rgb-led-matrix
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls node-rpi-rgb-led-matrix
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/roykolak/Projects/bigdots/node-rpi-rgb-led-matrix/npm-debug.log

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.