Hey guys, I try to create a effect class for a LED strip. Shortly, when I call this funktion, I want to create something init which can be different when I call it. Here a example:
In class
class LedEffect {
void call();
}
When I create that effect:
LedEffect effect;
effect.setOnAction({
bla bla bla bla bla bla
}
When I use the file:
effect.action();
In Java I would search for override methods, but I searched the internet with no result, so I'm here XD
I have a example for that as well, so in the ESP8266WebServer library you can call your server object and than
.on("url"), HTTP_GET, [](){
bla bla bla
});
and I want some kind of that thing in my class as well.