I need my jetson to be able to run a script without having to go into the terminal and execute it. My plan is to put a button on the gpio pins to execute the script. My question is, how do I write a script that runs as soon as the jetson turns on, waiting for the gpio pin signal to be received and then runs my script?
As for gpio wiring, I am going to run a wire from pin 1, 3.3v DC, to pin 7, and have the script wait until it sees voltage at pin 7. I am using the python periphery GPIO library. Is this a correct way to do it, or am I going to fry my board? Any advice or help would be appreciated.
TX2 header pinout: https://www.jetsonhacks.com/nvidia-jetson-tx2-j21-header-pinout/