Johhny Blue

  • Content Count

  • Joined

  • Last visited

Reputation Activity

  1. Like
    Johhny Blue reacted to martinayotte in Suggestions on connecting Membrane 1x4 Keypad to OrangePi PC+   
    You can simply use GPIO internal pullups by enabling them.
    By using orangepi_PC_gpio_pyH3 (, python code will look like :
    from pyA20.gpio import gpio from pyA20.gpio import port gpio.setcfg(port.PA1, gpio.INPUT) gpio.pullup(port.PA1, gpio.PULLUP) if gpio.input(PA1) > 0: print "not pressed" else: print "pressed"