Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.