diff options
Diffstat (limited to 'main/button.h')
| -rw-r--r-- | main/button.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/main/button.h b/main/button.h new file mode 100644 index 0000000..a6d1c80 --- /dev/null +++ b/main/button.h @@ -0,0 +1,8 @@ +#pragma once + +#include "esp_err.h" + +// BOOT button polling task. Pin is hard-coded in button.c and may need +// to be adjusted for the Waveshare ESP32-P4-ETH (see TODO in button.c). +// Returns OK if the task started; the firmware keeps running either way. +esp_err_t button_init(void); |
