ESP32-basiertes Kraftort-Suchger�t mit GPS, LED-Ring und PlatformIO-Firmware.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #include "power.h"
-
- #ifdef ARDUINO
- #include <esp_sleep.h>
- #endif
-
- #include "config.h"
-
- namespace kraftort::power {
-
- void PowerManager::begin() {
- #ifdef ARDUINO
- esp_sleep_enable_ext0_wakeup(
- static_cast<gpio_num_t>(kraftort::config::kButtonPin),
- kraftort::config::kButtonActiveLow ? 0 : 1);
- #endif
- }
-
- void PowerManager::enterDeepSleep() {
- #ifdef ARDUINO
- esp_deep_sleep_start();
- #endif
- }
-
- } // namespace kraftort::power
|