Closed tevey closed 6 years ago
The main thing that sticks out to me is your delays, you have 2 delays in your loop for quite a bit longer than what is in the examples for arduino shift registers. Everything else looks pretty good otherwise in comparison.
https://www.arduino.cc/en/Tutorial/ShftIn12
Ps. For anyone wondering snes uses a shift register in its controllers to read what button is pressed.
The tricky part is to answer the gamecube console just in time. if you do not, the console will drop the controller and tries to intialise it again. You can see it best in the game mario football where the game will pause once a controller disconnects. if it doesnt, your code is working fine
I suggest to try out different delays, and debug with a logic analyser if you miss any signal. it may also depend on the game you are playing. the code is somehow limited to that, you have to work around that.
Thank you for pointing me in the right direction! Now it's working and I uploaded everything here if somebody else want to build one.
Thanks for sharing! What did you do to solve the problem now?
I just had to move the code where i write to the gc console inside the read loop so that the data is always acurate when the gc asks for it.
Hi! I have build a SNES to GC controller adapter using your library. The problem i have is that when i keep a button pressed down it acts as if i press it and release it really fast over and over again instead of being pressed down.
Here is my code, is there something i'm missing? greatful for any help.