Closed peros550 closed 7 months ago
You could do something like
#include <jled.h>
auto led = JLed(LED_BUILTIN).Blink(1000, 1000).Repeat(5);
void setup() {
}
void loop() {
if (!led.Update()) {
led.Off().Update(); // or whatever you want
}
}
Update()
only returns true
as long as the effect is still active.
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
Hi
Would it be possible to return the pin to its previous state after Blink function finishes ?
Thanks,