From 0e98a2544988b9e684eac3f79c953fce50cd4c0d Mon Sep 17 00:00:00 2001 From: Collin Guarino Date: Fri, 19 Feb 2016 19:38:54 -0500 Subject: Implemented Light.SetColor with light color XY HSL values pre-defined. --- light_test.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'light_test.go') diff --git a/light_test.go b/light_test.go index 6fa1eb0..436d652 100644 --- a/light_test.go +++ b/light_test.go @@ -33,5 +33,23 @@ func TestSetLightState(t *testing.T) { selectedLight.Blink(3) + // selectedLight.SetColor(RED) + // time.Sleep(time.Second) + // selectedLight.SetColor(YELLOW) + // time.Sleep(time.Second) + // selectedLight.SetColor(ORANGE) + // time.Sleep(time.Second) + // selectedLight.SetColor(GREEN) + // time.Sleep(time.Second) + // selectedLight.SetColor(CYAN) + // time.Sleep(time.Second) + // selectedLight.SetColor(BLUE) + // time.Sleep(time.Second) + // selectedLight.SetColor(PURPLE) + // time.Sleep(time.Second) + // selectedLight.SetColor(PINK) + // time.Sleep(time.Second) + // selectedLight.SetColor(WHITE) + // _ := selectedLight.Delete() } -- cgit v1.2.3