happyleavesaoc / python-limitlessled

MIT License
33 stars 22 forks source link

priority/configurable repetitions #1

Open ettisan opened 8 years ago

ettisan commented 8 years ago

Hey,

I've partly implemented a way to a) configure the command repetitions and b) prioritize commands.

The idea behind this is to allow for faster switching times (especially when switching multiple bulbs at once): You could then set "reps" to 1 and add every command to be issued three times (with different priorities). This way the module tries to first switch all the bulbs correctly and then repeats all the commands in case a bulb didn't respond.

I am not yet completely sure if this does interfere with the "synchronization"? I haven't really implemented it completely - so please take it as a suggestions - how would you implement this features?

happyleavesaoc commented 8 years ago

Hm, I like where this idea is going. I need to look closer at the commit, but consider these repetition possibilities:

ettisan commented 8 years ago

Ah, i see. I think i haven't really thought this through completely. I'll try to have a more detailed look at some time