Skip to content
This repository has been archived by the owner on May 23, 2020. It is now read-only.

Add pull up/down in software as option #2

Open
tikismoke opened this issue May 31, 2016 · 0 comments
Open

Add pull up/down in software as option #2

tikismoke opened this issue May 31, 2016 · 0 comments
Labels
Milestone

Comments

@tikismoke
Copy link
Owner

If user don't want to add a 10k resistor to input.

See https://sourceforge.net/p/raspberry-gpio-python/wiki/Inputs/

The RPi.GPIO module allows you to configure the Broadcom SOC to do this in software:
GPIO.setup(channel, GPIO.IN, pull_up_down=GPIO.PUD_UP)

or

GPIO.setup(channel, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
(where channel is the channel number based on the numbering system you have specified - BOARD or BCM).

@tikismoke tikismoke added the Todo label May 31, 2016
@tikismoke tikismoke added this to the Version 0.2 milestone May 31, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant