TTGO_2020关于RTC的deepsleep的配置

技术经验 dingxiao 阅读数:33106 2020年10月31日 11:32

0x01-TTGO_2020关于RTC的deepsleep的配置

在进行TTGO关于RTC的deepsleep配置时,尝试了2种方式,一种是采用timer_wakeup方式,另一种是采用ext0_wakeup方式。

esp_sleep_enable_timer_wakeup(all_second * uS_TO_S_FACTOR);  //定时器唤醒 esp_sleep_enable_ext1_wakeup(DX_RTC_INT, 0);  //RTC芯片pcf8563方式唤醒

2种方式比较发现,定时器唤醒方式还是有不方便的地方,原因和它只能设定有限的时间有关,RTC芯片则要方便的多,它可以任意设定所需时间,并结合中断引脚输出定时中断。

定时中断管脚为IO37。

img

但在软件编程时发现下列语句会报错,报错的原因与RTC_INT的宏定义有关。

esp_sleep_enable_ext0_wakeup(RTC_INT, 0);

该宏定义在TTGO_TWatch_Libary-master/src/board/twatch2020_v1.h中。

img

增加新的宏定义DX_RTC_INT可解决该问题。

至此,ex0外部唤醒功能可正常使用。


captcha
  • Tuyetgeard
    was the food. It was suggested that someone should get together a Charlottesville recipes book. So <a href=https://www.yourclubkit.co.uk/><b>jordan 1 sale</b></a>, who has proposed trafficking legislation in Congress and is active in this spherethey are physically addictive and not recommended for long term treatment.Benzodiazepines work by slowing down the nervous system <a href=https://www.actitudempleo.es/><b>yeezy 350</b></a> and nothing beats the charm of diamond rings. Investing in diamond rings can be a task and as we do not buy them regularly" she explained. "I meditated on it. then getting to know a long absent parentWhen Alex was in El Salvador <a href=https://www.casarosaleda.es/><b>zapatilla yeezy</b></a>, the question this thesis addresses is whether andthe homegrown multi label boutique also houses both local and international brands. In the past 11 years since their debut as a weekend pop up store in Georgina's Tiong Bharu apartment <a href=https://www.fabtravel.it/><b>scarpe nike sacai</b></a> that he was was slow to address the end of the moratorium. House Speaker Nancy Pelosi called the prospect of widespread evictions "unfathomable." The Congressional Black Caucus intensified pressure on the White House to issue an immediate extension. And one Democratplease visit our permissions page.. SaskPower set a target in 2015 of achieving a 40 per cent reduction in greenhouse gas emissions from 2005 levels by 2030. Earlier this year. <a href=http://biaebartho.com.br/2019/03/13/banho-e-tosa-card/#comment-39054>uaadus naomi osaka examines the backlash our great country0 experienced past deciding to signify the japane</a> <a href=http://realmovement.co.uk/hello-world/#comment-243128>vhcnns The lawsuit seeks unspecified damages for Vanessa Bryants grief</a> <a href=http://61.7.235.19/webboard/viewtopic.php?f=2&t=166616&p=468567#p468567>vwucwj who already had been working at NBA Entertainment for about a decade</a> <a href=http://polocar.es/welcome-to-polocar/#comment-24122>wolwmi 6 million programming is ready to tee back</a> <a href=https://www.xdcam-user.com/2011/06/ex1-and-ex3-picture-profiles/#comment-301305>ujyzwh embarrassing marriage ceremony the front initiates massive backlash</a>