orangepi-xunlong / wiringOP

wiringPi for Orange Pi
GNU Lesser General Public License v3.0
394 stars 189 forks source link

Orange PI 5: pull up/down resistor setup doesn't work #80

Closed GuglielmiAndrea closed 10 months ago

GuglielmiAndrea commented 1 year ago

Hello, I'm using wiringOP successfully to handle GPIO of Orange PI 5 but I'm not able to configure pull-down resistor, it seems by default pull-up resistor is enabled for all inputs. It's not so nice because I should apply a strong pull-down resistor externally to get low level normally draining more current for nothing. Please can you help me to make it working somehow, or at least to disable pull-up default mode? Tri state would be enough applying a resistor my side. Thanks Andrea

leeboby commented 1 year ago

If you are using a Linux image released by OrangePi, it comes pre-installed with WiringOP and supports pull-up/down resistors by default.

The user manual contains instructions on how to use WiringOP.

GuglielmiAndrea commented 1 year ago

Thanks, I will try again, but anyhow, where I can find source code of that implementation? I need to integrate it in a custom C application, strange it is not available. Can you give me the link? the repository?

leeboby commented 1 year ago

https://github.com/orangepi-xunlong/wiringOP/commit/e6a192f7cc08b8a892cdbe5c07ad89f8ae8a6471