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

Custom Wave Animation #17

Open
ghost opened this issue May 9, 2019 · 1 comment
Open

Custom Wave Animation #17

ghost opened this issue May 9, 2019 · 1 comment

Comments

@ghost
Copy link

ghost commented May 9, 2019

Hi ! First I have to tell you that this is a great library.
I'm trying to update de color using a custom wave form instead of the "WaveForm" feature that comes with the API, but when I try to update the color ( i'm just changing the brightness), the fixture starts to flicker. I' m updating the brightness each 1ms.

If increase the time between each update (each 500ms) it works, but is not a smooth change. Any suggestions? I'm new working with node js, so i don't know if I'm updating properly the color on the Fixture, I use a "setInterval" function to update it.

Thank you.

@ristomatti
Copy link

@KidMustard Update each millisecond is too fast if you're sending regular color/brightness change messages like you said. From LIFX LAN protocol documentation:

Limits

  • Maximum recommended message transmit rate to a device: 20 per second

The only way I know to achieve faster or smoother updates using regular color/brightness messages is to set a duration for the transition.

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