Search found 2 matches
- Tue Sep 12, 2017 9:44 am
- Forum: ESP-IDF
- Topic: GPIO0 Pushbutton to Enter AND Wake from Deep Sleep - Only works once!
- Replies: 2
- Views: 6935
Re: GPIO0 Pushbutton to Enter AND Wake from Deep Sleep - Only works once!
1. You can not use FreeRTOS functions and drivers (such as GPIO drivers in deep sleep stub. Only functions marked with RTC_IRAM_ATTR can be called. See http://esp-idf.readthedocs.io/en/latest/api-guides/deep-sleep-stub.html#rules-for-wake-stubs . You are calling vTaskDelay(500 / portTICK_PERIOD_MS ...
- Mon Sep 11, 2017 12:32 pm
- Forum: ESP-IDF
- Topic: GPIO0 Pushbutton to Enter AND Wake from Deep Sleep - Only works once!
- Replies: 2
- Views: 6935
GPIO0 Pushbutton to Enter AND Wake from Deep Sleep - Only works once!
Hi guys,
I'm new to the ESP32 and am trying to get some code to work which I'd like to use in a larger project.
Basically I want the chip to enter Deep Sleep mode at the push of a button (GPIO 0), and also wake from Deep Sleep with the push of the same button.
I've set up an interrupt service ...
I'm new to the ESP32 and am trying to get some code to work which I'd like to use in a larger project.
Basically I want the chip to enter Deep Sleep mode at the push of a button (GPIO 0), and also wake from Deep Sleep with the push of the same button.
I've set up an interrupt service ...