From 510566c9a27316ed21621d1c8f9f98942358352b Mon Sep 17 00:00:00 2001 From: siddacious Date: Wed, 19 Sep 2018 01:26:23 -0700 Subject: [PATCH] fix for issue #27, _set_value() not accepting ints --- adafruit_dotstar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adafruit_dotstar.py b/adafruit_dotstar.py index 1a3555b..27e5977 100755 --- a/adafruit_dotstar.py +++ b/adafruit_dotstar.py @@ -157,7 +157,7 @@ def _set_item(self, index, value): if isinstance(value, int): rgb = (value >> 16, (value >> 8) & 0xff, value & 0xff) - if len(value) == 4: + if len(rgb) == 4: brightness = value[3] # Ignore value[3] below. else: