diff --git a/adafruit_dotstar.py b/adafruit_dotstar.py index 6e1109a..b475044 100755 --- a/adafruit_dotstar.py +++ b/adafruit_dotstar.py @@ -241,8 +241,8 @@ def fill(self, color): def _ds_writebytes(self, buf): for b in buf: for _ in range(8): - self.cpin.value = True self.dpin.value = (b & 0x80) + self.cpin.value = True self.cpin.value = False b = b << 1