Search found 2 matches

by lolomarx
Sat Feb 22, 2020 8:19 am
Forum: ESP-IDF 中文讨论版
Topic: ext0 和 ext1 唤醒 不能同时生效吗?
Replies: 0
Views: 3910

ext0 和 ext1 唤醒 不能同时生效吗?

[Codebox=c file=Untitled.c]
#define WAKE_UP_GPIO_25_MASK 0x2000000
esp_sleep_enable_ext0_wakeup(35,1) // wake up when USB connected ,gpio 35 is high

esp_sleep_enable_ext1_wakeup(WAKE_UP_GPIO_25_MASK,ESP_EXT1_WAKEUP_ALL_LOW ) //
[/Codebox]

在 main.c里面添加以上代码,esp_sleep_enable_ext0_wakeup,和 esp_sleep ...
by lolomarx
Sat Feb 22, 2020 1:43 am
Forum: General Discussion
Topic: ext0 can't work together with ext1?
Replies: 1
Views: 3725

ext0 can't work together with ext1?

I want to wake up esp32 from deepsleep mode by below cases:
1) Key down (gpio 25 turn to low )
2) USB plug in ( gpio 35 turn to high )

So i and below codes on main.c

[Codebox=c file=Untitled.c]
#define WAKE_UP_GPIO_25_MASK 0x2000000
esp_sleep_enable_ext0_wakeup(35,1) // wake up when USB connected ...

Go to advanced search