Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Other pin / button configuration. recompile? #43

Open
tarifari opened this issue Oct 1, 2016 · 2 comments
Open

Other pin / button configuration. recompile? #43

tarifari opened this issue Oct 1, 2016 · 2 comments

Comments

@tarifari
Copy link

tarifari commented Oct 1, 2016

Please fill the following form :
What happened

Wanted to use this recalbox i2c driver to work with my kitsch bent i2c dmg button pcb. (http://store.kitsch-bent.com/product/expanded-dmg-button-pcb-i2c-version)

What should have happened
Thought the configuration would work like expacted, but checked the pinout and found out, that this driver is using an another pinout configuration.

This is the pinout, used by the kitsch bent i2c controller:
pinout:

GPA2 — B
GPA3 — A
GPA4 — R2
GPA5 — R1
GPA6 — X
GPA7 — Y
GPB0 — UP
GPB1 — L1
GPB2 — L2
GPB3 — LEFT
GPB4 — RIGHT
GPB5 — DOWN
GPB6 — SELECT
GPB7 — START

this driver is running with other pinouts, which concludes in wrong / not working buttons.

Is it possible to recompile the driver, for use with the pinout above?

tried it by myself, but couldnt make it to a functional version.

@tarifari
Copy link
Author

tarifari commented Oct 5, 2016

no one with an idea?

@Turael
Copy link

Turael commented Oct 9, 2016

Hey tarifari,
i have the same problem but you are able to change the pin in this driver.
See https://github.com/recalbox/mk_arcade_joystick_rpi/blob/master/mk_arcade_joystick_rpi.c#L186
and
https://github.com/recalbox/mk_arcade_joystick_rpi/blob/master/mk_arcade_joystick_rpi.c#L189

after edit this file you will need to recompile...

But i´ve got another problem: my start button is not working (GPB 7) - all other buttons are working...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants