GPIO 6 button controller
-
this looks like what I need,
is there a decent tutorial on how to use it? I guess I will ask Mr google -
This worked perfectly straight away,,,, absolutely great, thanks for the heads up on this one.
-
does anyone know how to turn off retrogame again? I have it on a system but I need to have a full keyboard on that system in order to connect to wifi and ssh .
-
@spruce_m00se I think retrogame drops an entry into
/etc/rc.local
so that it runs at boot. -
@caver01 or maybe in
/home/pi/.profile
-
Are these files that can be accessed from the SD card? if not then I cant get to them due to a lack of keyboard :(
-
@spruce_m00se These are not in the boot directory/partition, so not as easy editing the card on a PC/Mac. You could edit it via network (SSH) if your Pi networked. Of course, you would have to make sure SSH is enabled if it is built from a newer image.
-
no such luck, it is a pi zero, wifi isnt configured, neither is ssh.
DOH!
maybe a new image is the quickest way to fix this issue. -
@spruce_m00se Well, I would think the easy way is to simply plug in a keyboard.
-
you would think that hey, but it doesnt work. I guess only one keyboard is recognised at a time and that is the emulated one ?
-
@spruce_m00se Wait, What? That's odd. So if you boot up the P0 with a USB keyboard connected, while RetroGame is loaded the USB keyboard doesn't work? That seems very odd. It seems like you should be able to use your GPIO connected buttons to navigate out of Emulation Station to a command prompt and start typing on the USB keyboard. Otherwise, once you have it loaded, how do you ever make changes or corrections to the retrogame config?
-
@caver01
let me test that, I havent tried coming out of ES, I have only tried the usb keyboard in the retropie menus, I realised that I was having problems when I was trying to raise the volume in the mixer, I couldnt press esc to exit..... -
@spruce_m00se I have seen multiple keyboard controllers get "confused" before and one stops working. Restarting always clears it up.
-
@caver01 well this hasnt cleared up after restarting as I have restarted at elast 5 times whilst trying to sort it, I will try outside of ES and see waht happens,
-
ok, so i exited ES to the CLI, and the USB keyboard doesnt work either. The GPIO "keyboard" registers the correct presses in the CLI, but USB is as though its not conencted.
-
@spruce_m00se Bad keyboard connection? I still can't believe that loading retrogame breaks additional keyboard functionality. I don't use retrogame--I am using GPIOneer for my GPIO admin buttons which definitely does not have this problem, but I wonder if someone who does use Retrogame could chime in here and confirm if their experience is the same or different.
-
@caver01 Im going to check my usb connections onto the pi0.
they are hard soldered, they should be fine, but I put a fresh instal on a new sd card today and it didnt recognise any gamepads, although that wouldnt make much sense as I am using a usb sound card on the same non powered usb hub and it is working fine, acually its a non powered hub but being powered directly from the 5v power supply, not draining the pi.
so yeh, the keyboard works on other devices but looks like not on the pi, and the usb sound card works well on the pi. hmmmmm wifi also worked in the past, -
@spruce_m00se Well, you could pull the sound card temporarily and borrow the port.
How does a non-powered hub get powered from a power supply? Wouldn't that make it a powered hub? I think you may need to improvise a few connections here just to get the quick editing job done (like hook it up to a powered hub temporarily).
-
@caver01 so what I have is a non powered 4 port hub, and a pi running off of a power bank.
I have physically removed one of the usb ports and hard wired the usb sound card to that port, this has been working for several tens of hours of playtime at least.
then there are 3 usb ports on the outside of the device, accesible, I have also removed the usb lead from the hub, and hard wired the data wires to the pi, and the +5 and - wires have been hard wired to the output of the power bank, so that no power on those ports is sourced from the pi, this has all worked well, until now, lol , i will try some other tests before opening the case and checking wires.
i may put a kodi instal on the sd card and see if that recognises the keyboard first. its strange that the sound card would work but all the other three ports die....... -
one more thing, it cant be the usb ports being physically dead, the sound card works, and the usb wifi dongle works, I can see wifi networks but not connect due to a lack of keyboard, I cannot get a gamepad to register either though...... very wierd,
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.