Skip to content

How to tell when first sequence is done? #136

Open
@RossAWaddell

Description

@RossAWaddell

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions