Skip to content

Commit 7ad2ac5

Browse files
committed
fix clock pin when not using SPI
1 parent d05b41c commit 7ad2ac5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_ws2801.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ def fill(self, color):
180180
def _ds_writebytes(self, buf):
181181
for b in buf:
182182
for _ in range(8):
183-
self.cpin.value = True
184183
self.dpin.value = (b & 0x80)
184+
self.cpin.value = True
185185
self.cpin.value = False
186186
b = b << 1
187187

0 commit comments

Comments
 (0)