I follow https://wiki.radxa.com/Zero/dev/libmraa step by step. but i am struking in sudo mraa-gpio set 40 1
and sudo mraa-gpio get 40
. The pin40 is always low level.although I’ve tried python code and Shell instruction, this problem is still on my way. Anyone have the similar problem like me?
my python code and shell recording is below:
rock@radxa-zero:~$ sudo mraa-gpio set 40 1
rock@radxa-zero:~$ sudo mraa-gpio get 40
Pin 40 = 0
import mraa
powerKey = mraa.Gpio(40)
powerKey.dir(mraa.DIR_OUT)
powerKey.write(1)