Skip to content

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

@nightvisi0n

Description

@nightvisi0n

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions