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

>Implement Buttons and encoders #21

Open
Shane87F3Ng opened this issue Mar 9, 2022 · 3 comments
Open

>Implement Buttons and encoders #21

Shane87F3Ng opened this issue Mar 9, 2022 · 3 comments

Comments

@Shane87F3Ng
Copy link

Any help / hints on that?

Hello @lshachar,

first of all, thx very much for your work, that is just awesome!
I have one question about how to add additional buttons / encoders..
Do i need to change to another wheel than the Porsche RSR? or just modify the button matrix and bytes?
Because as far as i know, i can only use buttons that are originally supported by the wheel? it is like that with thrustmaster

Actually i build sth similar for my previous thrustmaster base and was reading the wheelstates with an arduino sketch by https://rr-m.org/blog/ to implement it into my sketch and simulate the right wheel..

my plan is to use:

3 encoders + push button
8 buttons

so in total i would need to have 19 buttons (wheel states)

any help on where to start?

@EtienneGameSeed As is saw you do not sell the teensy anymore, maybe you can help with some thoughts here without getting too much info away on your own project.

Originally posted by @Shane87F3Ng in #12 (comment)

@lshachar
Copy link
Owner

I think your assumption will turn out to be true - you should figure out which of the fanatec wheels supports all of your wanted 19 buttons (check out the fanatec universal hub as well), because it sounds feasible that any wheel will only support buttons that should physically be on it.
once you have your answer, it's very easy to change the wheel byte in the arduino code, as you probably have found out by now.
Start off with changing some button bytes and noting that the button states in fanatec's driver (or in a game / other joystic utility) is actually changing.
The rest should follow easily!

@Shane87F3Ng
Copy link
Author

Nice. I will try a setup with a button matrix and report back as soon as i have results :)

@lshachar
Copy link
Owner

At first you don't even need a button matrix. There's a way to toggle bits on and off using the serial interface. look it up in the code and try flipping some bits that are used for buttons. they should toggle in the controller driver application

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