Skip to content

RGBLEDs won't yoyo from unlit state #2

@pixelblend

Description

@pixelblend

I want to have the status LED to a given colour and then out again. I thought this would work:

statusLED.change({ queue: [
     { colour: [0,0,0] },
     { colour: [0,0,255],
       transition: {
         yoyo: true
       }
     }
   ]});

But you don't get anything that way. Occasionally, it would work if I set it to a light colour first. It turned out that setting the initial colour to some sort of light would trigger the transitions. I tried [1,1,1] at first, but that didn't work either. This did:

statusLED.change({ queue: [
     { colour: [10,10,10] },
     { colour: [0,0,255],
       transition: {
         yoyo: true
       }
     }
   ]});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions