美文网首页物联网开发
ESP32: Disable Brownout Detector

ESP32: Disable Brownout Detector

作者: 怀揣梦想的小少年 | 来源:发表于2020-06-12 14:36 被阅读0次

转自:https://arduino.stackexchange.com/questions/55702/esp32-disable-brownout-detector#

步骤1:修改Arduino\hardware\espressif\esp32\tools\sdk\sdkconfig文件,

CONFIG_BROWNOUT_DET= //previous was "=y"

CONFIG_BROWNOUT_DET_LVL_SEL_0=      //previous was "=y"

CONFIG_BROWNOUT_DET_LVL_SEL_1=

CONFIG_BROWNOUT_DET_LVL_SEL_2=

CONFIG_BROWNOUT_DET_LVL_SEL_3=

CONFIG_BROWNOUT_DET_LVL_SEL_4=

CONFIG_BROWNOUT_DET_LVL_SEL_5=

CONFIG_BROWNOUT_DET_LVL_SEL_6=

CONFIG_BROWNOUT_DET_LVL_SEL_7=

CONFIG_BROWNOUT_DET_LVL=          //previous was "=0"

步骤2:

#include "soc/soc.h"

#include "soc/rtc_cntl_reg.h"

setup(){

    WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG, 0); //disable brownout detector   

}

相关文章

网友评论

    本文标题:ESP32: Disable Brownout Detector

    本文链接:https://www.haomeiwen.com/subject/dsggtktx.html