Search found 1 match
- Mon Dec 30, 2024 1:39 pm
- Forum: Sample Code
- Topic: How to detect, set and use BOD at runtime when using Arduino IDE for development?
- Replies: 0
- Views: 1036
How to detect, set and use BOD at runtime when using Arduino IDE for development?
Board: ESP32-H2-mini-DevKit Dev Env: Arduino IDE 2.3.4 ESP32 Arduino Core: 3.0.7 #include "esp_private/brownout.h" // #include "esp_adc/adc_cali.h" // #include "esp_adc/adc_cali_scheme.h" // const float BATTERY_THRESHOLD = 3.0; // Battery voltage threshold for low battery detection void setup() { S...