OpenglMan Posted October 24, 2017 Posted October 24, 2017 Hello, I get an error when i try to use the PH5 pin as digital output. PH5 is the number 229 according to the following equation: (8-1)*32+5 = 229 echo 229 > /sys/class/gpio/export -bash: echo: write error: Device or resource busy If i use other pins like PH13, PH19, PH20 or PH21, all work correctly. For example, for PH13 as digital output: echo 237 > /sys/class/gpio/export echo "out" > /sys/class/gpio/gpio237/direction echo "1" > /sys/class/gpio/gpio237/value echo "0" > /sys/class/gpio/gpio237/value echo 237 > /sys/class/gpio/unexport I get the same error in the Cubieboard2 and the Lime A20 board. Can someone help me ? Thanks in advance
martinayotte Posted October 24, 2017 Posted October 24, 2017 Probably on most boards, PH5 is USB0-VBUSDET, at least on Olimex ones.
OpenglMan Posted October 24, 2017 Author Posted October 24, 2017 Thanks martinayotte for your answer. Yes, It seems this pin is being used. I will use another pin. Thanks anyway
Recommended Posts