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

Use interrupt functionality from I/O expander for button pressed events #3

Open
nightvisi0n opened this issue Jan 1, 2018 · 1 comment

Comments

@nightvisi0n
Copy link
Collaborator

Currently we poll the I/O expander pins for state changes of the input buttons.
The I/O port expander (MCP23017) can issue interrupts on two pins whenever one of all the input pins changes (see datasheet page 24).
We should catch these interrupts in order to save cpu cycles for other things and in order to guarantee that we don't miss any button press.
However, this means we have to modify the current hardware (connect INTA and/or INTB of each I/O expander to the arduino) and the software.

@benjaminwand
Copy link
Owner

benjaminwand commented Jan 1, 2018 via email

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

No branches or pull requests

2 participants