Skip to content

Docs on how extension should be done #12

@ewjmulder

Description

@ewjmulder

Nice lib, got it to work in my home, thanks!
I am planning for a very simple use case: if my kids make too much noise, the lights will quickly flash red a few times. I tried the regular API but it's not fast enough for my taste. The entertainment API should make this possible. First I tried the transition function you have implemented. It works ok, but the timing is not perfect cause I have to wait for dim -> bright, then go back to dim and the timing of the setTimeout and the engine loop are not in sync well enough for the flashing to work properly.

My idea is to have a 'native' flashing function, which takes a from, to, time and amount to calculate the flashing in 1 smooth go. The main docs say the lib is meant as a basic start and can be extended for more advanced uses. So now my question is: what is your advised way to do that? How can I add functionality to the engine and the lights without having to change the original sources? Thanks for any advice on this!

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