FireBeetle ESP32 deep sleep
2018-04-101.5万
AI 快速预览详细
本文解决了在使用FireBeetle ESP32进行Deep Sleep编程时遇到的'esp_sleep_wakeup_cause_t'未声明的错误。通过检查ESP32库文件版本并更新库文件,可以解决这个问题。具体步骤包括确保使用最新版本的ESP32库文件,并重新烧录程序。这样可以避免因调用不成功而导致的编译错误,帮助开发者顺利实现低功耗模式。
|
hi all, 我购置了一块FireBeetle ESP32 ,当我设置完 Arduino IDE之后烧录原 ESP32 DEV 板的DEEP sleep程序后会报错,我发现在DFRobot_FireBeetle-ESP32-0.0.1.zip并没有ESP32 deep sleep库文件,这是因为调用不成功所导致吗? 急盼知道的朋友给予指点。 C:\Users\AndyWang\Desktop\espressif\esp32\libraries\ESP32\examples\DeepSleep\TimerWakeUp\TimerWakeUp.ino: In function 'void print_wakeup_reason()': TimerWakeUp:32: error: 'esp_sleep_wakeup_cause_t' was not declared in this scope esp_sleep_wakeup_cause_t wakeup_reason; ^ TimerWakeUp:34: error: 'wakeup_reason' was not declared in this scope wakeup_reason = esp_sleep_get_wakeup_cause(); ^ TimerWakeUp:34: error: 'esp_sleep_get_wakeup_cause' was not declared in this scope wakeup_reason = esp_sleep_get_wakeup_cause(); ^ C:\Users\AndyWang\Desktop\espressif\esp32\libraries\ESP32\examples\DeepSleep\TimerWakeUp\TimerWakeUp.ino: In function 'void setup()': TimerWakeUp:62: error: 'esp_sleep_enable_timer_wakeup' was not declared in this scope esp_sleep_enable_timer_wakeup(TIME_TO_SLEEP * uS_TO_S_FACTOR); ^ exit status 1 'esp_sleep_wakeup_cause_t' was not declared in this scope |



