• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
RetroPie forum home
  • Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

Lunch command gpio before start EmuleStation ?

Scheduled Pinned Locked Moved Help and Support
raspberry pi 3controlblockstartupbashbartop
2 Posts 1 Posters 1.0k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B
    Bulok
    last edited by 17 Nov 2016, 15:13

    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 1

    When 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 ^^ ).

    little part of my wiring

    Thanks you for your help !

    1 Reply Last reply Reply Quote 0
    • B
      Bulok
      last edited by 18 Nov 2016, 12:18

      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 0

      But can't find them :/

      If you have an idea , you are my hero ! :D

      Thx in advance.

      1 Reply Last reply Reply Quote 0
      2 out of 2
      • First post
        2/2
        Last post

      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.

        This community forum collects and processes your personal information.
        consent.not_received