Skip to content

Commit 8ce2d2d

Browse files
authored
Merge pull request #4 from schelmo/master
fix clock pin when not using SPI
2 parents 0b809b0 + 7ad2ac5 commit 8ce2d2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_ws2801.py

Lines changed: 1 addition & 1 deletion
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)