Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blink twice #103

Closed
diesel437 opened this issue Nov 9, 2022 · 2 comments
Closed

Blink twice #103

diesel437 opened this issue Nov 9, 2022 · 2 comments

Comments

@diesel437
Copy link

How can I make it blink twice and sleep a few ms, and repeat forever?!

@jandelgado
Copy link
Owner

perphaps something like this works (couldn't try it):

#include <jled.h>

auto blinkTwice = JLed(1).Blink(250,250).Repeat(2);
auto wait = JLed(1).Off().DelayAfter(1000);
JLed leds[] = {blinkTwice, wait};
auto seq = JLedSequence(JLedSequence::eMode::SEQUENCE, leds).Forever();
 
void setup() {
}

void loop() {
  seq.Update();
}

@github-actions
Copy link

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

@github-actions github-actions bot added the Stale label Feb 10, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants