alex (he/him)
10/16/2025, 6:48 PMc
#include "esp_pm.h"
// ... other includes and setup
void app_main(void) {
esp_pm_config_esp32_t config = {
.max_freq_mhz = 80, // or 160, depending on your needs
.min_freq_mhz = 10, // minimum frequency for the clock
.light_sleep_enable = true
};
esp_err_t result = esp_pm_configure(&config);
if (result == ESP_OK) {
// Configuration successful
} else {
// Handle error
}
}floitsch
10/20/2025, 12:03 PMfloitsch
10/20/2025, 12:04 PMfloitsch
10/20/2025, 12:04 PMalex (he/him)
10/26/2025, 6:03 PMfloitsch
10/26/2025, 6:06 PM