Tinker Board Forum

Full Version: GPIO control
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello guys,


I need to set pin37 to 0 at boot, actually I'm doing this by a shell script running at "@reboot" in crontab but sometimes it fails and doesn't change pin state or it changes pin value to 1 by itself, I don't know why.

This is the code:

Code:

Code:
gpio -1 mode 37 out

gpio -1 write 37 0


Maybe there's a best way to do this, hope you can help me.
Regards!