-
Notifications
You must be signed in to change notification settings - Fork 12
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
Configure internal Pull UP/Down Resistor #31
Comments
I have the same question/request - are there any news on this? |
I am preparing a pull request for #30 that will add this feature. |
This was merged with #48 and can be closed. |
Ah... in fact I am going to re-open this because although rpi_gpio_buttons has a To correctly implement this would need a change in the underlying rpi-gpio package as per JamesBarwell/rpi-gpio.js#71 |
Normally the GPIOs inputs are pulled to low, accept when I set them all to high in the settings, right? |
Sadly all this setting does is logically I have actually given up on this adapter as it's just as easy to write your own script and run inside Javascript adapter. Eg. install const rpio = require('rpio');
// Use GPIO numbers *NOT* pin numbers
rpio.init({ mapping: 'gpio' });
// Configure hardware GPIO internal pull up
rpio.open(23, rpio.INPUT, rpio.PULL_UP);
// Start polling
rpio.poll(23, () => { /* Called when GPIO23 changes */ }); FYI, pigpio also works well here. |
Yes, this is still missing. Currently (since libgpiod is mandatory on newer raspian versions) this is blocked by an issue on the library we use: |
Hello,
i found no comment about the internal resistors and how they are set with rpi.2
It shoult be possible to configure the Resistor to Pull up or down when i set an GPIO as Input
Please Dokument how the resistor ist set in the actual Version.
The text was updated successfully, but these errors were encountered: