|
ELEC-C7222
Libraries for ELEC C7222 Course Work
|
Input-only GPIO abstraction for push-buttons. More...


Go to the source code of this file.
Classes | |
| class | c7222::Button |
| Input-only GPIO wrapper intended for push-buttons. More... | |
Namespaces | |
| namespace | c7222 |
| C7222 course abstractions namespace. | |
Input-only GPIO abstraction for push-buttons.
The Button class wraps a GPIO pin configured as input with pull-up/down and provides a small, button-friendly API. It intentionally keeps the interface focused: construct, read state, and optionally use the base GpioIn IRQ facilities if needed.