Skip to content
This repository was archived by the owner on Dec 8, 2019. It is now read-only.

Adding ranges and XMas colors#64

Open
giddyhup wants to merge 1 commit intobruhautomation:masterfrom
giddyhup:patch-1
Open

Adding ranges and XMas colors#64
giddyhup wants to merge 1 commit intobruhautomation:masterfrom
giddyhup:patch-1

Conversation

@giddyhup
Copy link
Copy Markdown

@giddyhup giddyhup commented Dec 4, 2017

A range of LEDs can now be controlled. XMas light effect added (based on Police All).

Example MQTT payloads:
{ "effect" : "range" , "rangestart" : "5", "rangecount" : "130" } [ LEDs will be turned off, them LEDs 5 though 135 will be turned on (full white)]
{ "effect" : "addrange" , "rangestart" : "5", "rangecount" : "130" } [ LEDs 5 though 135 will be turned on (full white), other LEDs remain in previous state ]
{ "effect" : "addrange" , "rangestart" : "5", "rangecount" : "130" } [ LEDs 5 though 135 will be turned off, other LEDs remain in previous state ]
{ "effect" : "xmas" } [ red chases green ]

Possible future additions: colors/effects apply to range only. End ranges are given in pixel index number.

A range of LEDs can now be controlled. XMas light effect added (based on Police All). 

Example MQTT payloads:
{ "effect" : "range" , "rangestart" : "5", "rangecount" : "130" }  [ LEDs will be turned off, them LEDs 5 though 135 will be turned on (full white)]
{ "effect" : "addrange" , "rangestart" : "5", "rangecount" : "130" }  [ LEDs 5 though 135 will be turned on (full white), other LEDs remain in previous state ]
{ "effect" : "addrange" , "rangestart" : "5", "rangecount" : "130" }  [ LEDs 5 though 135 will be turned off,  other LEDs remain in previous state ]
{ "effect" : "xmas" }  [ red chases green ]

Possible future additions: colors/effects apply to range only. End ranges are given in pixel index number.
@cooljimy84
Copy link
Copy Markdown

I was gonna see if i could do an Christmas light effect like this !
Your awesome !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants