pumuckl Posted April 28, 2019 Posted April 28, 2019 Armbianmonitor: http://ix.io/1Hsm hello Armbians, Since over an year I try to use this useless Board. Now i want too switch 3 Relays modules with the gpio system, after an udp command. I installed Wiring pi , gpio readall work gpio write 25 1 , works to the inputt get the value 1 gpio mode 25 out, does not work echo 36 > /sys/class/gpio/export echo out > /sys/class/gpio/gpio36/direction echo 101 > /sys/class/gpio/export echo out > /sys/class/gpio/gpio101/direction the input is without an error but with gpio readall nothing changes this code I wrote to use the gpio with python export38= open('/sys/class/gpio/export','w') export38.write('38') export38.close() active_low38= open('/sys/class//gpio/gpio38/active_low','w') active_low38.write('1') active_low38.close() direction38= open('/sys/class//gpio/gpio38/direction','w') direction38.write('out') direction38.close() value38= open('/sys/class//gpio/gpio38/value','w') value38.write('1') value38.close() but also with gpio readall nothing changes. this code work on an rpi3 export26= open('/sys/class/gpio/export','w') export26.write('26') export26.close() active_low26= open('/sys/class//gpio/gpio26/active_low','w') active_low26.write('1') active_low26.close() direction26= open('/sys/class//gpio/gpio26/direction','w') direction26.write('out') direction26.close() value26= open('/sys/class//gpio/gpio26/value','w') value26.write('1') value26.close() with gpio the pin 37 changes to high. on the opiwin the values in the filesystem changes but not with gpio readall does somebody else have this problems? does the gpio system not work or wiring pi?
Recommended Posts