aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2018-09-28 23:35:43 +0200
committerDimitri Sokolyuk <demon@dim13.org>2018-09-28 23:35:43 +0200
commita42bfab1fab329eeb14e2958a271f8e0062947f9 (patch)
tree4a6f83a44bc1d120abbb881343663b7a37639dc4
parent1ee5bd53a6635235b1c6259257fc58cbad9d665b (diff)
...
-rw-r--r--blinkstick.go3
1 files changed, 2 insertions, 1 deletions
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)
}