Pull Up / Pulldown Resistors

Post Reply
Gerri3d
Posts: 11
Joined: Thu Apr 12, 2018 7:46 pm
languages_spoken: german
ODROIDs: XU4
Contact:

Pull Up / Pulldown Resistors

Unread post by Gerri3d » Wed Jun 06, 2018 1:08 pm

Hi,
how can I activate Pullup / Pulldown resistors in Python with WiringPI for the GPIO Inputs

User avatar
tobetter
Posts: 2581
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Contact:

Re: Pull Up / Pulldown Resistors

Unread post by tobetter » Thu Jun 07, 2018 1:15 pm

Gerri3d wrote:Hi,
how can I activate Pullup / Pulldown resistors in Python with WiringPI for the GPIO Inputs
It seems to pull up/down is not fully tested in Python. What about to set up GPIO pull-up/down on boot and use a GPIO input in Python temporary before that is verified?

joshua.yang
Posts: 113
Joined: Fri Sep 22, 2017 5:54 pm
languages_spoken: English
ODROIDs: XU4, XU4Q + Cloudshell2
Contact:

Re: Pull Up / Pulldown Resistors

Unread post by joshua.yang » Fri Jun 29, 2018 2:32 pm

It should work :)
Refer to: https://wiki.odroid.com/odroid-xu4/appl ... on_wrapper
void pullUpDnControl(int pin, int pud) implemented.

To code with WiringPi Python Wrapper, don't forget to call wiringPiSetup() function first.
If it doesn't work, please let us know.

Post Reply

Return to “Hardware and peripherals”

Who is online

Users browsing this forum: No registered users and 1 guest