From a42bfab1fab329eeb14e2958a271f8e0062947f9 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Fri, 28 Sep 2018 23:35:43 +0200 Subject: ... --- blinkstick.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/blinkstick.go b/blinkstick.go index 3188487..351b901 100644 --- a/blinkstick.go +++ b/blinkstick.go @@ -33,6 +33,7 @@ func SetIndex(w io.Writer, i int, c color.Color) { w.Write([]byte{5, 0, uint8(i), r, g, b}) } +// Set 0 to 64 colors func Set(w io.Writer, colors ...color.Color) error { var buf []byte switch l := len(colors); { @@ -61,7 +62,7 @@ func Set(w io.Writer, colors ...color.Color) error { return err } -// SetAll sets all (8) LEDs to same color +// SetAll sets all 8 LEDs to same color func SetAll(w io.Writer, c color.Color) error { return Set(w, c, c, c, c, c, c, c, c) } -- cgit v1.2.3