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

Paddle support #7

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Paddle support #7

wants to merge 2 commits into from

Conversation

brijohn
Copy link

@brijohn brijohn commented May 28, 2023

This adds paddle support to NABU-LIB.

I've modified the keyboard ISR to detect the paddle prefix and store the next four bytes of data, on receiving the 4th byte it will decode them and store the paddle information for later retrieval by calling getPaddleValue(uint8_t paddleNum).

I've also written a simple "Input Test" utility that will use nabu lib to display joystick and paddle status that can be used for testing.

This currently works well on MAME, however it appears that on real hardware there is a pull-up on the analog lines which is preventing them from registering voltage changes based on the paddle POTs. Grounding the analog lines will cause the nabu to register a change though so i know the ADC is working fine at least.

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

Successfully merging this pull request may close these issues.

1 participant