Search found 3 matches

by iD2017
Fri Oct 27, 2017 9:33 pm
Forum: General Discussion
Topic: RGB (NeoPixel) Control from Wake Stub
Replies: 0
Views: 2023

RGB (NeoPixel) Control from Wake Stub

I have an application whereby a button is pressed to wake the ESP32 from deep sleep, and when it wakes a series of RGB LEDs (Neopixels) are illuminated a particular color. However, there is a delay of 1-2 seconds between button click and LEDs illuminating due to the time it takes for the chip to wak...
by iD2017
Tue Oct 17, 2017 3:12 pm
Forum: General Discussion
Topic: How to enable sleep timer in wake stub?
Replies: 2
Views: 5361

Re: How to enable sleep timer in wake stub?

Thanks for the reply, but I don't see how that would work since this function: esp_err_t esp_sleep_enable_timer_wakeup(uint64_t time_in_us) can only be called in the main program, not within the wake_stub. How could I call RTC_TIMER_TRIG_EN and set the timer duration using the limited REG commands (...
by iD2017
Tue Oct 17, 2017 5:08 am
Forum: General Discussion
Topic: How to enable sleep timer in wake stub?
Replies: 2
Views: 5361

How to enable sleep timer in wake stub?

I have a simple application that must follow the following logic: 1. Go to deep sleep and wake on GPIO button press; 2. When GPIO button is pressed, a wake stub launches, checks if this is the first time the button was pressed, and if it is, immediately goes back to sleep (instead of waking the main...