C++ Lambdas in Arduino
I had the need to pass some callback functions to some of my generic C++ Arduino classes. So I was asking myself if we can use Lambdas in Arduino. Here is a small test sketch, to verify this. #include “TestLambda.h” void setup() { auto f1 = [](int number) { Serial.println(number); Read more…