#include "pico/stdio.h"
#include "pico/stdlib.h"
#include <stdio.h>
#include "sw/ui_core/ui_control_event.h"
Go to the source code of this file.
|
#define | GPIO_HI true |
| the boolean meaning for GPIO_HI
|
|
#define | GPIO_LO false |
| the boolean meaning for GPIO_LO
|
|
#define | DEBOUNCE_us 10000 |
| the default value for debounce_delay_us
|
|
#define | LONG_RELEASE_DELAY_us 1000000 |
| the default value for LONG_RELEASE_DELAY_us
|
|
#define | LONG_PUSH_DELAY_us 1000000 |
| the default value for LONG_PUSH_DELAY_us
|
|
#define | TIME_OUT_DELAY_us 5000000 |
| the default value for TIME_OUT_DELAY_us
|
|
- Author
- xiansnn (xians.nosp@m.nn@h.nosp@m.otmai.nosp@m.l.co.nosp@m.m)
- Version
- 0.1
- Date
- 2025-01-11
- Copyright
- Copyright (c) 2025
◆ ButtonState
The logical state of the switch (0) IDLE (1) ACTIVE (2) RELEASE_PENDING (3) TIME_OUT_PENDING.
Enumerator |
---|
IDLE | The button is inactive.
|
ACTIVE | the switch has been pushed, the button is active
|
RELEASE_PENDING | A long push has been detected, the switch wait to be released.
|
TIME_OUT_PENDING | the switch has beeb released, the button wait for next action. If nothing occurs, a time_out event is returned and the button is inactive
|