OpenStickFoundation / GP2040-CE

Gamepad firmware for Raspberry Pi Pico and other RP2040 microcontrollers supporting Nintendo Switch, XInput and DirectInput
https://www.gp2040-ce.info
MIT License
186 stars 42 forks source link

Flatbox Revision 4 support #95

Closed fluxcorenz closed 2 years ago

fluxcorenz commented 2 years ago

Restore support for Flatbox Revision 4.

Tested on my own Flatbox Rev4 devices.

Default button mapping mimics Bentobox.

fluxcorenz commented 2 years ago

Absolutely it will work without. It's just much easier to determine which button connects to which pin (and how it's mapped to the GP2040 functions) with the extra set. If define space is lacking (?) it could be converted to a set of comments describing the flatbox SW number to pin number, just means that a person manually fiddling with the gp2040 button mapping in code would have to do an extra set of manual lookups via the comments.

TheTrainGoes commented 2 years ago

No space issues that I am aware of that you would not have run into while testing so you should have a good runway there.

I will PM you with a few additional concerns on Discord.

hurik commented 2 years ago

No space issues that I am aware of that you would not have run into while testing so you should have a good runway there.

I will PM you with a few additional concerns on Discord.

What are the additional concerns?

It tested it on my Flatbox Rev4 and it is working fine!

Thanks you @fluxcorenz!

TheTrainGoes commented 2 years ago

Hey @hurik ,

The additional concerns were more about legacy support and ensuring we had done a good sample of tests before releasing it.

As we are seeing with the CC2.0 there are different versions and parts used on some of them which have lead to some compatibility issues.

I would like to ensure what we release has been tested as much as possible as not to leave people with a soft-bricked unit that might not know how to recover on their own.