aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCollin Guarino <collin.guarino@gmail.com>2016-02-19 19:49:50 -0500
committerCollin Guarino <collin.guarino@gmail.com>2016-02-19 19:49:50 -0500
commita902f8994241fc2484af6241726fd3cfc6d7ddc5 (patch)
tree804c939be9f00fc190f717ac9c0314cabebd3293
parent0e98a2544988b9e684eac3f79c953fce50cd4c0d (diff)
Added examples for Light.SetColor
-rw-r--r--README.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/README.md b/README.md
index 0a604f1..aaf5e81 100644
--- a/README.md
+++ b/README.md
@@ -28,6 +28,10 @@ func main() {
nightstandLight.Blink(5)
nightstandLight.SetName("Bedroom Lamp")
+ lights[0].SetColor(hue.RED)
+ lights[1].SetColor(hue.BLUE)
+ lights[2].SetColor(hue.GREEN)
+
for _, light := range lights {
light.Off()
}