Closed BernhardSchlegel closed 1 year ago
The type is simply JLed
, so you could for example pass a reference with something like (make sure to a recent JLed version):
#include <jled.h>
auto led = JLed(LED_BUILTIN).Blink(1000, 1000).Repeat(5);
void dosomething(JLed& led) {
led.Stop();
}
void setup() {
}
void loop() {
led.Update();
dosomething(led);
}
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days
Hey there,
I've created a JLed, I.e. using
How do I pass that to a function
I've tried
jled::JLed::TJLed
,jled::JLed
,auto
... nothing works. (I.e. resulting intoerror: use of deleted function 'jled::JLed::JLed()'
)Thanks!