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.