-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New version to support Raspbian kernel 4.9.y ? #70
Comments
I took a stab at changing the target to a more up-to-date WiringPi lib, but I'm seeing failure at |
Hi Ross,
I have had success replacing the "wiring-pi" library with the "wiringpi-node" library - just had to npm install and change the require statement in my code - worked on the new kernel without further modifications.
See https://www.npmjs.com/package/wiringpi-node
Hope this helps,
George
… On 29 Apr 2017, at 18:12, Matt Ross ***@***.***> wrote:
I took a stab at changing the target to a more up-to-date WiringPi lib, but I'm seeing failure at node-gyp rebuild. I don't have much experience making/updating binding libraries, so I'm not sure where to go from there.
https://github.com/amsross/WiringPi-Node
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I forked this repository to use the latest library. https://github.com/kohei0302/WiringPi-Node |
Is anyone working on resolving this issue for real? I was able to use @kohei0302's fork to get running again (thanks for that!), but that's no substitute for a real fix. I can't tell if anyone is actively maintaining this project -- @eugeneware are you on top of this? Has this project been superseded by a different node.js wrapper for WiringPi? |
Hello I am trying to install wiring-pi module for nodejs but I am facing some problms. when I run a in /home/pi/node-modules/wiringpi-node/examples: I had install wiringPi lib with the last version. I have no problem in command line with gpio cmd, but that doesn't work with node. What am I doing wrong ? I don't understand. Thank a lot for your help. |
I only npm installed 'wiringpi-node', not both libraries - note that you will need to change the 'require' statement in your code - for example, change "const wPi = require('wiring-pi')" to "const wPi = require('wiringpi-node')" Without this change in both your code and the blink example, you will continue to reference the original wiring-pi library, and so continue to see the problem. Hope this helps. |
Hello thank for your answer. I had reinstalled all the raspbian next npm and wiringpi-node with npm. I have this error : module.js:356 Thank for your help |
Have you tried copying blink.js to your /home/pi directory and running 'sudo node blink.js' from there ? |
Hello I tried to create a new file name test.js I just have written the require statment And i have the same issue Is node version v0.10.29 is good ? Thank |
Hello After many tests, i have found what didn't worked. blink.js work fine. Thank for the support, and for the great job |
I am very pleased you managed to "crack the case" 😊 |
Hello I 'have an other problem :( I tried to configure a pca9685 module so this is what i tried : When i tried this i had : SO i tried to liisted all fonctions in wpi with a How to use pca9685 module ? Thank |
WiringPi doesn't have drivers for specific devices. You need to either find a node.js driver for your device or write your own. It looks like there are existing drivers for the pca9685 (https://github.com/johntreacy/adafruit-pca9685) and mcp23017 (https://github.com/kaihenzler/node-mcp23017) so you should check those out. I haven't used either of these devices so I can't vouch for the drivers. For the most part I've found that I've had to write my own drivers for the devices I've used so far; often this is a matter of porting existing Python code to JavaScript. Interesting note: Neither of the drivers mentioned above actually uses WiringPi-Node. |
Hello Thank for the answer. |
bumping this issue. Maintainers, please consider this issue as it's being a blocker now |
I'm going to rewrite the whole project. I had alot of ideas to make the project more open for me and other contributors by moving it to an open organization see #61. I also opened an issue #60 about moving to NAN. But just as I started my work on rewriting last year I received a life changing opportunity for me which I could not reject. On top of that I'm currently studying mathematics and computer science verry seriously, so I had no time for this project. Now I have whole month free just for me and I'll use it to contribute to project like this one ;) Sorry for he novel about my life but I have to explain why #60 is still open ... |
Haha.. totally understand :) |
@RandScullard I've checked both repos. They are using only I2C bus. i2c npm package they use ships with I2C device driver this way it has an interface talking directly to the hardware and so no need to use WiringPi lib ... |
@kishu27 I'll write to @kohei0302 asking him to make a PR which I can than merge. |
Thanks |
@kishu27 I have not found any contact to @kohei0302 so I made the PR with which to merge the commits from his fork. The problem is that @kohei0302 's fork builds against his fork of wiringpi as well ... So I'wont merge the PR before @nekuz0r reviews it. |
Add support for Raspberry Pi 4B
Hi,
I see that the guys @ https://github.com/raspberrypi/linux have changed the Linux headers default branch to 4.9.y, and are expecting this to be the new Long Term Support (LTS) version. This causes an issue for wiring-pi when using a 4.9.y Raspbian kernel, as the kernel (correctly) reports the hardware on a Pi3 as 'BCM2835', but this generates an error message regarding unsupported hardware in wiring-pi. It appears Gordon Henderson fixed this issue some time ago in the C library for wiringPi (http://wiringpi.com), but your Node wrapper builds against a rather out of date mirror at https://github.com/nekuz0r/wiringpi.git.
Do you plan to resolve this ?
Regards,
George
The text was updated successfully, but these errors were encountered: