I2SClocklessLedDriver icon indicating copy to clipboard operation
I2SClocklessLedDriver copied to clipboard

ESP-IDF Support

Open parksj10 opened this issue 2 years ago • 3 comments

Very cool project first of all! thanks for sharing.

I read here that this library supports ESP-idf, however, I'm having trouble getting the compiler to recognize your .h properly (perhaps because it's actually C++, not C, e.g. cstring doesn't seem to be available). Do you happen to have a basic example of your library integrated with esp-idf

parksj10 avatar Aug 10 '23 06:08 parksj10

hello I will look at it since the version 5 of esp-idf I need to make changes I will try to look at it asap Yves

hpwit avatar Aug 10 '23 08:08 hpwit

ahhh thanks! I'm actually on IDF 4.4.4 and it still seems to not want to work, I'm going to keep fiddling as well. I'll post a minimum reproducible example if I can get it working

parksj10 avatar Aug 10 '23 16:08 parksj10

So more digging, seems like the .h was getting treated as a C compiled file, which I remedied via

#ifdef __cplusplus
extern "C++"
{
#endif

however, it seems like there are other references in your code to Arduino.h... is it required to run an Arduino core in esp-idf to get your program to work?

parksj10 avatar Aug 11 '23 05:08 parksj10

Who is going to get IDF v5 support first, you or FastLED? 😜

netmindz avatar May 09 '24 10:05 netmindz

Normally it should be already compatible with espidf v5. I have made the necessary change for the virtualLed I will check for this one

hpwit avatar May 09 '24 11:05 hpwit