Pull Up / Pulldown Resistors

Moderators: mdrjr, odroid

Pull Up / Pulldown Resistors

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

Hi,
how can I activate Pullup / Pulldown resistors in Python with WiringPI for the GPIO Inputs
Gerri3d
 
Posts: 11
Joined: Thu Apr 12, 2018 7:46 pm
languages_spoken: german
ODROIDs: XU4

Re: Pull Up / Pulldown Resistors

Unread postby 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?
tobetter
 
Posts: 2240
Joined: Mon Feb 25, 2013 10:55 am
Location: Paju, South Korea
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: Pull Up / Pulldown Resistors

Unread postby 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.
joshua.yang
 
Posts: 73
Joined: Fri Sep 22, 2017 5:54 pm
languages_spoken: English
ODROIDs: XU4, XU4Q + Cloudshell2


Return to Hardware and peripherals

Who is online

Users browsing this forum: No registered users and 2 guests