aboutsummaryrefslogtreecommitdiff
path: root/light.go
diff options
context:
space:
mode:
authorCollin Guarino <collin.guarino@gmail.com>2016-02-14 23:20:19 -0500
committerCollin Guarino <collin.guarino@gmail.com>2016-02-14 23:20:19 -0500
commit03d8d97ce9a3468b060e462f8480a36a76956415 (patch)
tree428f61823bb3e547e2f59d03349ab9c911e9d63e /light.go
parentfb14bbfab6d23cac1fc987a6190c11b41fadc4d7 (diff)
Documentation links for philips hue website to official docs added to all file headers.
Diffstat (limited to 'light.go')
-rw-r--r--light.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/light.go b/light.go
index 6866b38..05e270a 100644
--- a/light.go
+++ b/light.go
@@ -4,8 +4,8 @@
* Copyright (C) 2016 Collin Guarino (Collinux) collin.guarino@gmail.com
* License: GPL version 2 or higher http://www.gnu.org/licenses/gpl.html
*/
-
// http://www.developers.meethue.com/documentation/lights-api
+
package hue
import (
@@ -113,7 +113,8 @@ func (self *Light) Blink(seconds int) error {
blinkMax := LightState{On: true, Bri: uint8(200)}
blinkMin := LightState{On: true, Bri: uint8(50)}
- // Toggle the light on and off
+ // Start with near maximum brightness and toggle between that and
+ // a lesser brightness to create a blinking effect.
err := self.SetState(blinkMax)
if err != nil {
return err