-
Notifications
You must be signed in to change notification settings - Fork 89
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
Not working with lastest Raspberry pi OS 64bits (Bookworm) #154
Comments
Ok by removing "edge: Gpio.EITHER_EDGE" it is working. |
@lavoiekeven could you share any sample code you're using? I'm trying to get a simple button working and I had the same error as you. The error goes away when making the change you suggested, but the button doesn't seem to do anything. I'm doing this const Gpio = require('pigpio').Gpio;
const button = new Gpio(4, {
mode: Gpio.INPUT,
pullUpDown: Gpio.PUD_DOWN,
});
button.on('interrupt', (level) => {
console.log('level', level);
}); Button is plugged into GPIO4 and GND The log never happens |
Hi, So I used alert instead exemple in TS `
` |
Is this project being maintained at this point? |
I guess not, but once i used alert rather than interrupt, the library work well in my case on. Personaly, I didn't find other library that worked that well for what I wanted to do. |
I am a huge fan of this library - it's the most powerful for hardware pwm IMHO. I use it extensively. The march bookworm update put me in a boot loop and I need to figure out the problem. I use alerts in my code already so glad to hear that's not the problem. UPDATE:
|
I am having the same issue w/ interrupt vs. alert. I can get alerts to work but not interrupts. |
I had a projet with this library and It was working well last year. Now I'm setuping a new raspberry pi with Raspberry OS Lite 64 bits and I got this error:
Error: pigpio error -123 in gpioSetISRFunc
at Gpio.enableInterrupt (/home/cdl/gateopener2/server/node_modules/pigpio/pigpio.js:264:12)
at new Gpio (/home/cdl/gateopener2/server/node_modules/pigpio/pigpio.js:173:12)
It happen here:
this._gpio = new Gpio(gpioPin, { mode: Gpio.INPUT, pullUpDown: Gpio.PUD_DOWN, edge: Gpio.EITHER_EDGE });
I tried many pin all the same result.
I also start my app sudo.
Any ideas of what can be my problem?
The text was updated successfully, but these errors were encountered: