jled icon indicating copy to clipboard operation
jled copied to clipboard

How to tell when first sequence is done?

Open RossAWaddell opened this issue 7 months ago • 2 comments

I'd like to invoke other code to happen when the first sequence is complete - is that possible?

JLed leds[] = {
   JLed(AMBER_LED_PIN).FadeOn(AMBER_LED_FADE_UP_TIME).MaxBrightness(MAX_BRIGHT_AMBER_LEDS).DelayBefore(AMBER_LED_WAIT_START_TIME).DelayAfter(250),
   JLed(AMBER_LED_PIN).Fade(MAX_BRIGHT_AMBER_LEDS, MIN_BRIGHT_AMBER_LEDS, PULSE_TIME/2),
   JLed(AMBER_LED_PIN).Breathe(PULSE_TIME).MaxBrightness(MAX_BRIGHT_AMBER_LEDS)
     .MinBrightness(MIN_BRIGHT_AMBER_LEDS).DelayAfter(250).Forever()
};

JLedSequence seqAmberLEDs(JLedSequence::eMode::SEQUENCE, leds);

i.e. is it possible to tell when the initial FadeOn is done?

RossAWaddell avatar Jun 08 '25 14:06 RossAWaddell

Hi, thats not possible at the moment. However you could just copy and adapt the code of JLedSequence and extend it to meet your requirement

jandelgado avatar Jun 20 '25 12:06 jandelgado

Thanks Jan.

On Fri, Jun 20, 2025 at 8:21 AM Jan Delgado @.***> wrote:

jandelgado left a comment (jandelgado/jled#136) https://github.com/jandelgado/jled/issues/136#issuecomment-2991351474

Hi, thats not possible at the moment. However you could just copy and adapt the code of JLedSequence and extend it to meet your requirement

— Reply to this email directly, view it on GitHub https://github.com/jandelgado/jled/issues/136#issuecomment-2991351474, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHCVEZDMZ6THWPXUZEP55GT3EP4GPAVCNFSM6AAAAAB63FHJC2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSOJRGM2TCNBXGQ . You are receiving this because you authored the thread.Message ID: @.***>

RossAWaddell avatar Jun 20 '25 12:06 RossAWaddell