Skip to content

Commit 294502c

Browse files
authored
Merge pull request #35 from schelmo/digitalio
write data bit first before rising clock pin (in non hardware spi)
2 parents 409e909 + 045d6f8 commit 294502c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_dotstar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,8 @@ def fill(self, color):
241241
def _ds_writebytes(self, buf):
242242
for b in buf:
243243
for _ in range(8):
244-
self.cpin.value = True
245244
self.dpin.value = (b & 0x80)
245+
self.cpin.value = True
246246
self.cpin.value = False
247247
b = b << 1
248248

0 commit comments

Comments
 (0)