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

RGBLEDs won't yoyo from unlit state #2

Open
pixelblend opened this issue Feb 9, 2015 · 0 comments
Open

RGBLEDs won't yoyo from unlit state #2

pixelblend opened this issue Feb 9, 2015 · 0 comments

Comments

@pixelblend
Copy link
Member

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
       }
     }
   ]});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant