Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PINOUTS DEFAULT AND ON/OFF COMMANDS #18

Closed
andrellvs opened this issue Sep 7, 2018 · 3 comments
Closed

PINOUTS DEFAULT AND ON/OFF COMMANDS #18

andrellvs opened this issue Sep 7, 2018 · 3 comments

Comments

@andrellvs
Copy link

mholgatem, hello how are you? Greetings here from BRAZIL!

First of all, I would like to thank you. His project solved an old problem of the RETROPIE, in relation to the GPIO.

I would like you to clarify two issues that I believe have been misunderstood in GITHUB:

    • WHAT ARE THE GPIO PINS USED TO CONTROL 1 AND 2 BY DEFAULT;
    • HOW TO INCLUDE COMMANDS ON / OFF BY GPIO.

It would be very interesting a video of you on this. But I would be grateful if you answer here too.

@mholgatem
Copy link
Owner

There aren't any default pins set up. You need to run the config utility by typing:

gpionext config

it will ask you questions about how many D-pads + buttons you have, then it will have you press each one in turn and watch the pins to configure it.

Turning the pi on/off. I suggest connecting your power button to pin 5 (GPIO 03). This pin can be used to power on the raspberry pi without any code. To get it to turn off the pi, you need to use the config utility and on the first screen, select the option Commands, then follow the prompts. To turn off the raspberry pi, enter the command:

sudo poweroff

then you should be good to go

@andrellvs
Copy link
Author

andrellvs commented Sep 19, 2018 via email

@mholgatem
Copy link
Owner

Nice! That sounds like a fun project!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants