added button support

This commit is contained in:
James Hall committed 2025-03-20 12:26:52 -04:00
1 parent b626dbca8a
commit 325569c526
2 files changed
+3

No files matched your search

+2
View File
@@ -37,6 +37,8 @@ public:
power.setALDO2Voltage(3300);
power.enableALDO2();
pinMode(38,INPUT_PULLUP);
esp_reset_reason_t reason = esp_reset_reason();
if (reason == ESP_RST_DEEPSLEEP) {
long wakeup_source = esp_sleep_get_ext1_wakeup_status();