... | ... | @@ -26,7 +26,7 @@ static bool isPressed() { return Button::value(); } |
|
|
|
|
|
Finally consider that the [GPIO](GPIO-Usage-&-Used-Pins.md) associated to the button has to be passed as a template argument when instantiating the ButtonHandler object.
|
|
|
|
|
|
You can find the complete implementation of the ButtonHandler n `src/shared/utils/ButtonHandler.h`.
|
|
|
You can find the complete implementation of the ButtonHandler in `src/shared/utils/ButtonHandler.h`.
|
|
|
|
|
|
## Example
|
|
|
This example shows the usage of the ButtonHandler, using the STM32F407VG on-board user button, which is connected to pin `PA0`.
|
... | ... | |