Francesco Guarracino Posted January 24, 2017 Posted January 24, 2017 Hi i have a orange pi lite,i try thishttps://yudanta.me/installing-wi ... orangepi-pc-device/ in armbian terminalbut after the installation i try with my button arcade on gpio pin but never working,if onyl work 5v with ground(make reset button)i have used many button and switch but work only the reset buttonWhere is wrong?thanks
jkajolin Posted January 24, 2017 Posted January 24, 2017 take loot of this https://docs.armbian.com/Hardware_Allwinner/#updating-a-fex extract the configuration and look for GPIO mapping.ensure that the GPIO numbers you are using are actually mapped to the correct physical pins of your device
jkajolin Posted January 25, 2017 Posted January 25, 2017 better use this https://github.com/duxingkei33/orangepi_PC_gpio_pyH3.git then look the file <source>/pyA20/gpio/mapping.h // { "PA6", SUNXI_GPA(6), 7 }, // connect PA6 and GND #!/usr/bin/env python import os,sys if not os.getegid() == 0: sys.exit() from pyA20.gpio import gpio,connector,port gpio.init() gpio.setcfg(port.PA6, gpio.INPUT) gpio.pullup(port.PA6, gpio.PULLUP) state=gpio.input(port.PA6) print state
Francesco Guarracino Posted January 28, 2017 Author Posted January 28, 2017 thanks now works see 2 controller but for any player work only 8 button ,don't work up,down.left and right why? thanks
Recommended Posts