#include <uButton.h>
#include <Blinker.h>
uButton btn(2);
Blinker led(3);
void setup() {
}
void loop() {
btn.tick();
led.tick();
if (btn.click()) {
static bool f;
f = !f;
if (f) led.blinkForever(500, 500);
else led.stop();
}
}