Skip to content

Instantly share code, notes, and snippets.

@vikingosegundo
Last active November 24, 2021 16:28
Show Gist options
  • Save vikingosegundo/dd347191775eac4a7faf5f44472303b4 to your computer and use it in GitHub Desktop.
Save vikingosegundo/dd347191775eac4a7faf5f44472303b4 to your computer and use it in GitHub Desktop.
// Dimmer.Request
.increase(.brightness,by:10.pt,on:light))
.decrease(.brightness,by:10.pt,on:light))
.increase(.hue, by:10.pt,on:light))
.decrease(.hue, by:10.pt,on:light))
// Dimmer.Response
.increase(.brightness,by:10.pt,on:light,.succeeded )
.increase(.colortemp, by:10.pt,on:light,.succeeded )
.decrease(.hue, by:10.pt,on:light,.succeeded )
.decrease(.saturation,by:10.pt,on:light,.succeeded )
.increase(.brightness,by:10.pt,on:light,.failed(error)))
.increase(.colortemp, by:10.pt,on:light,.failed(error)))
.decrease(.hue, by:10.pt,on:light,.failed(error)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment