I'm wondering if there's a reason to include a (custom?) version of FastLED in Teensyduino. Looking at the standard FastLED source code on GitHub, it appears to me that the newer versions (I only checked 3.4, 3.5, and...
To me, @luni's solution is preferable to reinventing the wheel as Paul proposes with his "Lightweight C++ callbacks" idea.
If I understand correctly, std::function won't occupy significant heap space if you just wrap...
I don't know squat about licensing, but if you install the ESP32 core, you can find the files in "....\esp32\hardware\esp32\2.0.11\cores\esp32":
esp32-hal-gpio.c
FunctionalInterrupt.h
FunctionalInterrupt.cpp
Thanks. Actually, 4-1/2 years later, I've refined my wish a little bit as exactly what I want already exists in ESP32 and ESP8266. Instead of creating a new CallBack class, the Arduino core for those boards allow...