RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    1. Home
    2. Tags
    3. gpio
    Log in to post
    • All categories
    • mooseprM

      Control issues

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support input raspberry pi 0 retrogame portable gpio
      4
      1 Votes
      4 Posts
      919 Views
      mooseprM

      @obsidianspider ok i found the issue!!!!!

      i had copy/pasted the config line within /etc/udev/rules.d/10-retrogame.rules (i create this manually rather than using the adafruit install script)

      was checking the config file and noticed that the config contents looked odd

      SUBSYSTEM=="input", ATTRS{name}=="retrogame", ENV{ID_INPUT_KEYBOARD}="1"

      at first glance it looked fine, but when i typed another double quote next to the exsisting ones, it looked slightly different!! so i re-typed all the quotes, and everything is fine and dandy again!!! :)

    • A

      thumbstick wiring

      Watching Ignoring Scheduled Pinned Locked Moved Projects and Themes pi zero w thumbstick adafruit gpio
      1
      0 Votes
      1 Posts
      581 Views
      No one has replied
    • K

      Advanced Safe Shutdown Idea

      Watching Ignoring Scheduled Pinned Locked Moved Ideas and Development programming help beginner idea gpio
      8
      0 Votes
      8 Posts
      2k Views
      K

      So its looking like I want to do the mausberry varient if these power mods, which varient are people using mostly to get what I'm after tho?
      https://mausberry-circuits.myshopify.com/products/shutdown-circuit-use-your-own-switch

      direct-plug micro-USB, 2-pin spring terminal header, or the versions with a USB female plug?

      I'm still not 100% certain how this works but it looks like the switch only controls either the reset or power switch? If that's the case does the power switch still power everything directly?

      What I'm thinking is this correct me if I'm wrong?

      Power switch = hard on off power (no script for safe shut down)

      Reset switch = mausberry switch with script that if in emulator and pressed quits the emulator and if not in emulator and is pressed runs script for safe reset?

    • B

      Simulate coin input from another pi

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support coin coin acceptor gpio usb encoder
      10
      -1 Votes
      10 Posts
      2k Views
      jonnykeshJ

      @mitu 0_1517607033957_upwrk.png

    • C

      Design dilemma for retro arcade machine

      Watching Ignoring Scheduled Pinned Locked Moved Ideas and Development arcade input gpio arduino
      5
      0 Votes
      5 Posts
      995 Views
      C

      @dankcushions said in Design dilemma for retro arcade machine:

      plus of course, if you play any console games the 'insert coin' button is by default also the 'select' button, which is used in SNES, PSX, etc.

      No plans to play any console games. I was always a C64/Amiga fan, but I emulate these on my PC 'cause it's a more suitable environment than a arcade machine. The one game I wouldn't mind from a console would be Alex the Kid from the Master System (I believe).

      Thanks for your input

    • S

      MCP23017 and Retropie, some problem appears

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support mcp23017 gpio controller recalbox
      40
      0 Votes
      40 Posts
      7k Views
      S

      Hi everyone

      @nickstr138 I have created a "driver" for this, check this out :
      https://github.com/retrobox/console-modules/blob/master/installinputsdriver.sh

      Regards

    • J

      Help help. GPIO is strange

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support retropie gpio parasite
      1
      0 Votes
      1 Posts
      466 Views
      No one has replied
    • craggus2000C

      1 button joystick to navigate retropie/emulation station

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support retropie emulation joystick menu gpio
      3
      0 Votes
      3 Posts
      869 Views
      craggus2000C

      Hi,
      Yes in the end I decided to get a snes-style USB controller, and it seems to be working a treat!
      Sorry for the delay in replying...

    • L

      DB9/Gamecon installation error

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support genesis gpio db9-gpio-rpi
      19
      0 Votes
      19 Posts
      3k Views
      L

      @mitu said in DB9/Gamecon installation error:

      I don't, didn't work with Berryboot, only normal images.

      Thanks for the help, I'll look for a way to convert an image.

    • N

      Phantom GPIO controller?

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support contoller gpio bluetooth
      2
      0 Votes
      2 Posts
      439 Views
      mituM

      Please give more details about your system - https://retropie.org.uk/forum/topic/3/read-this-first.

    • N

      GPIO Pins for Adio Output speaker?

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support gpio speaker raspberry pi 3b
      3
      0 Votes
      3 Posts
      2k Views
      N

      Alright thank you.

    • AnalogHeroA

      Splashscreen video sound output

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support asplashscreen omxplayer gpio
      5
      0 Votes
      5 Posts
      1k Views
      AnalogHeroA

      @mitu Thanks. It works now.

    • herb_fargusH

      Alsa audio to GPIO LED equaliser

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion and Gaming gpio led pcb xmas tree
      3
      0 Votes
      3 Posts
      1k Views
      herb_fargusH

      I think the first step would be to test if I can capture audio natively before I pass it through to GPIO.

      I've narrowed it down to wanting to use the alsa sound driver. I want to be able to hear the sound from my speakers while it's being captured which is looking like I'll need to use a loopback device. Eg snd-aloop

      I'll update this post when I have more details but I've gotten so far as sorting dependencies and just need the proper configs for /etc/.asound.conf

    • H

      Rigging reset and shutdown buttons

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support zero gpio
      7
      0 Votes
      7 Posts
      2k Views
      cyperghostC

      @haemogoblin said in Rigging reset and shutdown buttons:

      I think I now have the power button in the bag, using a Pimoroni on/off shim.

      I've written a small tutorial for the OnOff SHIM here

    • F

      UAE4ARM or AMIBERRY : link disk activity to Pi GPIO

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support uae4arm amiberry gpio led floppy disk
      1
      0 Votes
      1 Posts
      1k Views
      No one has replied
    • DarkSide1305D

      Small little Fan on Raspberry Pi?

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support cooling fan fan gpio
      11
      0 Votes
      11 Posts
      3k Views
      caver01C

      @zerojay Thanks. Good to know.

    • R

      Retropi + GPIO = Not Working (Using adafruit more info in post)

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support gpio raspberry pi 3 retropie adafruit gpio adafruit
      25
      0 Votes
      25 Posts
      7k Views
      B

      Hi,

      I have followed much of the same process as on here, I have up/down/left/right/a/b/x/y all working ok.

      Start and select don't work however. In the config file I have the following:

      SELECT 6 # 'Select button'
      START 16 # 'Start button'

      I noticed in the list of commands does not include 'start' and 'select' (i looked at the kerTable. file referred to on adafruit tutorial) so maybe it should be SPACE and ENTER, I tried this but still does not work in emulationstation or when playing a game.

      Any ideas?

      I am just using arcade buttons and a joystick.

      Just to check, does the part after the # matter? I thought this was just a reference in the code to the person reading it so they knew what that button/PIN did.

    • R

      PI Zero W: Dual Monitor support?

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion and Gaming pi zero w hdmi gpio display
      5
      0 Votes
      5 Posts
      2k Views
      obsidianspiderO

      @retro_pi if you read my post it’s in there. If you have specific questions I will be happy to answer them.

    • F

      Using GPIO for Digital and Teensy for Analog Stick. Is it possible?

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support raspberry pi 3 teensy analog gpio
      2
      0 Votes
      2 Posts
      937 Views
      F

      Retropie detects 2 gamepads when I connect the Teensy with the 2 analog sticks, but I can't configure any input when I move the PSP sticks. Any idea? :/

    • lostlessL

      GPIO button to exit emulator

      Watching Ignoring Scheduled Pinned Locked Moved Ideas and Development gpio exit emulator button
      27
      0 Votes
      27 Posts
      8k Views
      J

      Here is how to set Long press and Short press function. I added on my reset ROM button a long press feature that resets the entire system:

      Create a script that will be executed at long press
      nano /home/pi/switch.sh

      Paste the below code and save using CTRL + X, Y

      #!/bin/bash sudo reboot

      Make it executable:
      chmod +x /home/pi/switch.sh

      Edit the code in the first mentioned post resetbutton.py:

      nano /home/pi/scripts/resetbutton.py

      Replace all text with the below code, save using CTRL + X, Y: #!/usr/bin/python import RPi.GPIO as GPIO import time import os # we will use the pin numbering to match the pins on the Pi, instead of the # GPIO pin outs (makes it easier to keep track of things) GPIO.setmode(GPIO.BOARD) GPIO.setup(16, GPIO.IN) seq_cust = 0 tim_cust = 0 # check to see if button has been pushed try: while True: if GPIO.input(16)==0: tim_cust = 0 if seq_cust > 0: os.system("sudo /home/pi/exit.sh") # Short press action seq_cust = 0 time.sleep(1) else: seq_cust = 0 else: tim_cust = tim_cust + 1 time.sleep(.01) if tim_cust >= 200: # Time for long press >= x os.system("sudo /home/pi/switch.sh") # Long press action tim_cust = 0 time.sleep(1) else: seq_cust = 1 finally: GPIO.cleanup()

      I used 0.01 seconds to eliminate delay in button press.
      At 200 should result in ~2 seconds.

      You can put your own script in switch.sh
      Also the script supports more than 2 actions per button with a bit of tweak.

      Enjoy ;)