Skip to content
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

Pull up configuration wrong for some GPIO inputs #174

Open
JR-Home opened this issue Mar 26, 2024 · 2 comments
Open

Pull up configuration wrong for some GPIO inputs #174

JR-Home opened this issue Mar 26, 2024 · 2 comments

Comments

@JR-Home
Copy link

JR-Home commented Mar 26, 2024

The pullup configuration for some inputs is not correct.
For the GPIO Inputs 4, 7 and 8 the pullup configuration is correct as expected.

Not configured is the pullup for Inputs 9, 10, 11, 17, 22, 23, 24, 25, 27, 30 and 31

Steps to reproduce the behavior:

  1. Configure all the listed GPIO ports as inputs and activate pullups for the Inputs.
  2. use a voltmeter and check the inputs.
    You will see, that GPIO 4,7 and 8 will have 3.3V. Pullups are correctly configured.
    But if checking 9, 10, 11, 17, 22, 23, 24, 25, 27, 30 and 31 all those inputs stay at 0V. Pull ups not configured as expected.

Expected behavior
All GPIO pins configured as input will stay at 3.3V

Versions:

  • Adapter RPI2.0 Version 1.3.2
  • JS-Controller version: 5.0.12
  • Node version: 18.20
  • Operating system: Raspbian Bookworm, 64 Bit
@HackyPaddy
Copy link

Can you explain to me how I can activate pullup/pulldown via the adapter configuration?
This selection is missing for me.

I would like to test that out too...

@Garfonso
Copy link

I changed that a lot.

But... from what I see... there is no real support for pull up / pull down. It is kind of emulated in the adapter by just inverting the value...

Since GPIO support had to be rewritten completely, you might want to check, if anything has changed (probably not). But the adapter now depends on another gpio library, and this issue can be worked on, after the library has added support, keep an eye on this issue: ExplorationSystems/opengpio#1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants