Lunch command gpio before start EmuleStation ?
-
Hi everybody :)
For first time, excuse me for my english... I'm french and not a verry good student :p
I have make my arcade bartop and i try to make something particular...
I would like to run this command just when the power buton are pressed :
gpio mode 21 out
gpio write 21 1
gpio mode 22 out
gpio write 22 1
gpio mode 23 out
gpio write 23 1
gpio mode 26 out
gpio write 26 1When i quit emulestation (not reboot), and make this command line, it's work perfectly, but i don't know how make for run before ^^ ...
Why i want make that ? :p ... :
I have connect Controlblock on my Rasp pi 3 . and relay card ...
I would like the raps run my relay for put on sound amplifier/display/light ...Little pic for my wiring :D (not finish on pic but finisdh in real ^^ ).
Thanks you for your help !
-
Hi everybody :)
I have find little of i want make :p ...
I have past my command line in rc.local
Now, i try to found the file command for controlblock shuting down to put this line :
gpio write 21 0But can't find them :/
If you have an idea , you are my hero ! :D
Thx in advance.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.