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

Adding ranges and XMas colors #64

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

giddyhup
Copy link

@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

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.

None yet

2 participants