FastLED library, IDE 2.3.0, AVR/interrupt.h

I am/have been struggling with trying to get the FastLED examples to work on ESP32-S2 and ESP32-S3 hardware. Using IDE 2.3.0 (and 2.2.1 before), the compiler produced many errors. After much searching, I found that the FastLED library in $home/Arduino/ was failing. Examining the library rabbit hole took me to $home/FastLED/src/platforms/avr/clockless_trinket.h which includes "avr/interrupt.h", which does not seem to exist in the path in the FastLED library.

Being a simple soul, to overcome the immediate problem, I commented out line 47 in $home/Arduino/FastLED/src/platforms.h viz:-

#else
// AVR platforms
//#include "platforms/avr/fastled_avr.h"
#endif

The examples now compile and run on the ESP32-S2 and ESP32-S3 platforms after adjusting the number of WS2812B's and the GPIO pin used.

I don't use the AVR platform in the current project so that is not a problem but I think this is a problem for users of AVR based systems. I could have copied avr/interrupt.h from somewhere else but I'm no AVR expert. I don't know, but it is possible this error does not happen in IDE 1.8.xx

Ideally, the FastLED maintainer should update the library.

worth documenting in their GitHub as an issue

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.