Page 1 of 1

esp_event_loop.h is deprecated

Posted: Fri Jan 08, 2021 4:05 am
by zipidy66
Hi,
I am attempting to use a RGB LED WS2812 with a ESP32 devkit, It wont compile and I get the following warning:

#warning "esp_event_loop.h is deprecated, please include esp_event.h instead"

this is followed by lots more (I am assuming they are relating to the original warning), I have attached the whole log if you need it

Thanks

Re: esp_event_loop.h is deprecated

Posted: Fri Jan 08, 2021 11:40 am
by LeighM
Hi
The deprecated warning message is not a problem.
Looks like the issue might be to do with the WS2812 component.
Could you post your project file to help identify the issue?

btw. If the RGB LED WS2812 requires accurate IO timing, the ESP32 RTOS based devices might not be the ideal candidate.
We are looking at methods of improving this situation on ESP, but it might take some time.

Re: esp_event_loop.h is deprecated

Posted: Fri Jan 08, 2021 12:47 pm
by BenR
Hello,

The WS2811 component is a bit of a work in progress with ESP32. We intend to use the RMT peripheral to allow high speed accurate timings to the LEDs without the processor having to bitbang out the signals but at the moment this is incomplete.

I'll try and make this a priority to complete for you ASAP.