I'm getting really crazy with these Altoids.
-
@backstander I have a hole in the top right corner and I just got them functioning correctly. The start and select button placement works great for me. I came up with them being on the side on my last Altoid project. Thanks =]
-
@meleu Thank you.
-
@thedudester80 Nice work dude, your getting good at squeezing stuff in those little tins!
How many things are you using USB for? I would be tempted to try and scrap the hub and connect your buttons to the gpio, that way you save on bits to squeeze in, and you gain some battery life too. Have a look here
https://learn.adafruit.com/retro-gaming-with-raspberry-pi/adding-controls-hardware
And the next page is the software setup.It does mean the pi is doing a little more work, but I don't think you will notice any difference
-
@moosepr I don't know why gpio didn't even cross my mind? You sir are a huge help. Ill get to working on it later today and let you know how it goes. =] Thanks for the idea.
-
Ok, that video made me LOL.
Cool project! -
Love it! Great build.
-
@Zigurana Yeah I like to make people laugh. Glad you enjoyed it and thank you for the compliment on my project =]
-
@celly Thank you. It was quiet a challenge. =]
-
@moosepr I'am having the worst time getting gpio buttons to work.
-
@thedudester80 oh no! :-( How far have you got?
-
@moosepr I got everything but my select button and Y button working. Heres how they are mapped on my gpio.
Start=4
up=17
select=11 Gpio 8 is already used for I2S amp so I could not use that.
down=27
left=22
right=23
A=24
B=10
X=9
Y=25
Ground is pin 6 for ground on my permaproto.The wiring is fine and the button works. I'm guessing its a programming issue. Any thoughts on what I did wrong? lol
-
@thedudester80 the only thing I can think is to check the config on the pi, make sure you don't have spi enabled, pin 11 is listed as the clock signal for spi so that could be conflicting
-
@moosepr Thats a good idea Ill do that and let you know how it went. Thank you.
-
@moosepr said in I'm getting really crazy with these Altoids.:
make sure you don't have spi enabled
Don't you need SPI to drive the screen? Maybe I'm missing something, but my GPIO-connected TFT needed SPI enabled.
-
@obsidianspider I'm not running a tft I'm using a composite display. So those pins are available. This may seem like a weird question but to edit the gpio inputs I go to the retropie.cfg file right ?
-
@thedudester80 said in I'm getting really crazy with these Altoids.:
@obsidianspider I'm not running a tft I'm using a composite display. So those pins are available. This may seem like a weird question but to edit the gpio inputs I go to the retropie.cfg file right ?
I'm not sure. On my Super Famicom Pi I'm using a SPI TFT so I had the "multiple things trying to use the same GPIO" problem. I abandoned GPIO for controller inputs and used a Raphnet USB adapter.
-
@obsidianspider Yeah I used a teensy but the pi zero can only take 1 usb input at a time so I could not use the usb hub. Now that my buttons are GPIO and all but 2 are working the hub is great to have to edit files with a keyboard and upload roms without taking it apart to get to the pi and micro sd. I just need to find a wire diagram of where all the buttons go and how to configure them to all work. This is my first time doing anything GPIO so its all new to me.
-
@thedudester80 Once you get it figured out, please let us know how you did it.
-
Ohh my god.. What a hilarious video. I laughed my ass out while watching it and what a lovely pocket size build :-P
-
@thedudester80 yeah you need to edit the code so it knows which gpio pin pretends to be which keypress. You then need to build the app again with the make commands. Once it is built you can run it in the command line just to test it, then add it into the startup so it's there every time. I used this to figure out out
https://learn.adafruit.com/retro-gaming-with-raspberry-pi/adding-controls-software
It's actually changed since I did mine, it doesn't need a recompile by the looks of it
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.