-
Couldn't load subscription status.
- Fork 48
Open
Description
Hi Marcello,
I have an object that should be able to call a method triggered by a timer. But nothing happens when I instantiate an object of my class and call run():
class LightShow {
private:
SimpleTimer timer;
public:
LightShow(SimpleTimer timer):
timer(timer),
{}
void run() {
timer.setInterval(3000, show);
}
static void show() {
Serial.println("Triggered");
}
};
Metadata
Metadata
Assignees
Labels
No labels