GPIO Android Pull-Up and Pull-Down

6 1141
Hello everyone!

Thanks in advance for any help you may provide.

I have been playing with the GPIO within Android using the sample code provided in the wiki. Things are going great for the output but for the input I was wondering if there was any way to activate the pull-up or pull-down resistors associated with the GPIO pins? I am having issues with my signal floating when no voltage is present and the easiest fix would be to enable the pull-down resistor for the GPIO pin.

Thanks for any information,
-Matt
hnsncxy  
Edited by hnsncxy at Apr 20, 2016 21:06

You should know not all GPIO support the pull-down/up on the 40Pin Header according to the datasheet for the s500. and you can know about more information by visiting the LMK.GPIO library at https://github.com/LeMaker/LMK.GPIO/blob/master/test/gpio_pull.py
#pull-up/down pins for the LeMaker Guitar, and the P3, P5, P19 and P23 of the pull-up has been enabled by connecting the external pull-up resistor, don't need to operate by using the software.

#-----------P8 P10 P12 P13 P15 P16 P22-----------#
pullUpGt = (8, 10, 12, 13, 15, 16, 22)  #Pull-UP pins which be configured by the software
pullDwGt = (16,)                        #Pull-Down pins which be configured by the software

I think you choose the right pin which can meet your needs. eg: P16.

Edited by SDMatt619 at Apr 21, 2016 07:29

Thank you for the the reply. I will try using GPIO 16 and see if it solves my floating issue. I guess I am a little confused though since I was under the impression that LMK.GPIO library was for the linux side of the IO control; I didn't realize it was being used in the background on the Android side of things. But I looked at the help documentation on the wiki for the Android java GPIO and there is an import statement for LMK in the SPI side of things so I am hopeful that your suggestion works. I was not using SPI so I hadn't looked at that before. Thanks again for helping a novice out I really appreciate it.

See 283 in the datasheet,



ugg outlet
adidas shoes
pandora charms
polo outlet
moncler outlet
nike shoes for men
canada goose
canada goose outlet
coach factory outlet
oakley sunglasses
canada goose outlet
ralph lauren uk
longchamp uk
canada goose outlet
moncler outlet
oakley sunglasses
ray ban sunglasses
adidas
cheap mlb jerseys
uggs canada
moncler jackets
ralph lauren uk
ray ban sunglasses
air max 2017
michael kors handbags
skechers shoes
adidas outlet
moncler outlet
louis vuitton outlet online
north face jackets
ugg boots
moncler outlet
ugg boots
nike store
supreme clothing
pandora jewelry
canada goose outlet
cheap uggs
michael kors outlet
coach outlet
pandora charms
louis vuitton outlet
adidas campus
adidas shoes
supreme clothing
coach outlet
adidas outlet
mulberry handbags
longchamp outlet
coach factory outlet
air jordans
polo ralph lauren outlet online
ralph lauren
birkenstocks
adidas outlet
ralph lauren outlet
pandora charms sale
cheap jordans
coach outlet
kate spade
burberry
nike outlet store
coach outlet
fitflops sale clearance
yeezy boost 350
ugg boots
adidas superstar
mcm handbags
adidas yeezy
coach outlet
nmd adidas
kate spade bags
coach outlet store
kate spade outlet
nike outlet
coach factorty outlet
ralph lauren outlet
supreme new york
canada goose jackets
canada goose outlet
cheap nba jerseys
cheap oakley sunglasses
ferragamo shoes
coach factory outlet
nike air max
mulberry outlet
coach factory outlet
hermes outlet
canada goose uk
timberland outlet
cheap mlb jerseys
coach outlet store
christian louboutin outlet
fitflops
mcm outlet
philipp plein outlet
michael kors factory outlet
air max 97
canada goose jackets
ralph lauren
moncler outlet
cheap nfl jerseys
cheap ray ban sunglasses
oakley sunglasses
ray ban sunglasses
michael kors outlet
moncler jackets
coach outlet store online clearances
pandora charms sale clearance
mlb jerseys
coach outlet
jordan shoes
michael kors outlet
air jordan shoes
cheap jordans free shipping
moncler jackets
180309yueqin

canada goose outlet
oakley sunglasses sale
nike air max outlet
ugg outlet
michael kors outlet
hermes birkin
nike shoes
michael kors outlet
kate spade
uggs canada
polo ralph lauren outlet
cheap nfl jerseys
canada goose
uggs outlet
air max 97
michael kors outlet online
birkenstock
air jordans
red bottom shoes
cheap jordans for sale
gucci handbags
canada goose jackets
canada goose uk
hermes handbags
adidas shoes
tory burch outlet
michael kors uk
adidas yeezy
michael kors outlet
mbt shoes
pandora outlet
moncler
pandora jewelry outlet
pandora store
birkenstock sandals
fitflops sale
pandora outlet
red bottoms
moncler outlet
ralph lauren outlet
jordans
burberry outlet
michael kors
ralph lauren outlet
moncler jackets
fitflops
cheap ray ban sunglasses
michael kors outlet
adidas shoes
ugg australia
nike air max
nike zoom
cheap jordans
michael kors handbags
nfl jerseys wholesale
pandora jewelry
ugg outlet
ralph lauren sale clearance
cheap oakley sunglasses
yeezy boost
louis vuitton outlet
nmd adidas
coach outlet
michael kors outlet
cheap jordans
coach factory outlet online
polo ralph lauren
ferragamo outlet
louis vuitton
cheap jordan shoes
canada goose
columbia sportswear
michael kors outlet
prada outlet
coach factory outlet
harden vol 1
yeezy boost
nmd shoes
burberry outlet store
coach factory outlet
fitflops sale clearance
nike outlet
fitflops
coach outlet store
canada goose jackets uk
cheap jordans
valentino shoes
louboutin shoes
coach factory outlet
cheap jordans
supreme clothing
oakley sunglasses
adidas yeezy
pandora charms
coach outlet
jordan retro 11
michael kors outlet
coach outlet
birkenstock
ugg outlet
fred perry polo
michael kors outlet
ray ban sunglasses discount
coach factory outlet
tory burch outlet
supra shoes
kate spade handbags
pandora jewelry
christian louboutin
kate spade outlet
coach outlet
ralph lauren outlet
pandora
ugg boots on sale
nike outlet store
ralph lauren sale clearance
coach outlet
coach outlet store
180309yueqin

roshe run
air jordan 4
kate spade outlet online
tom ford sunglasses
lebron 15
yeezy boost
air jordan
asics kayno
adidas ultra boost
crazy explosive
dior sunglasses
nba jerseys
asics shoes
fitflops sale clearance
nike air force 1
chrome hearts
adidas nmd
off white hoodie
curry 3 shoes
true religion jeans
yeezy
adidas eqt support
ysl
yeezy boost 350
nike roshe
true religion
bape hoodie
golden goose sneakers
longchamp outlet
adidas tubular
nike flyknit racer
vapormax
atlanta falcons jersey
curry 3
michael kors outlet online
gucci belt
nike air zoom
nike football boots
timberland boots
nmd
links of london
jordan retro 12
nike air huarache
nike running shoes
russell westbrook shoes
vibram fivefingers
adidas crazy explosive
paul george shoes
nike air max 2018
tory burch shoes
nike air max 2017
nike outlet store online shopping
hogan outlet online
reebok shoes
roshe shoes
nike flyknit
air max 90
jordan shoes
nike shoes for men
yeezy boost 350
adidas tubular
vans outlet
http://www.kobebasketballshoes.us.com
adidas shoes
adidas yeezy
burberry
michael kors handbags
longchamp handbags
golden goose
real jordans for sale cheap
michael kors outlet online
zx flux
adidas yeezy
kyrie 4
lacoste outlet
curry 4
chrome hearts
michael kors outlet
vibram five fingers
nike sneakers
yeezy
yeezy boost 350
nike air force 1
adidas eqt
nike roshe
ultra boost
jordan 11 retro
asics running shoes
calvin klein outlet
nike huarache
longchamp bags
prada glasses
adidas stan smith sneakers
ysl handbags
hermes belt
adidas outlet
nike outlet
louboutin shoes
air presto
retro jordans
michael kors outlet
adidas nmd
yeezy boost
nike air max

You have to log in before you can reply Login | Sign Up

Points Rules