From 045d6f8bc703fa98e8dcc750bef2321fd7ec6ffc Mon Sep 17 00:00:00 2001 From: Georg Nagel Date: Tue, 14 May 2019 13:25:49 +0200 Subject: [PATCH] write data bit first before rising clock pin (in non hardware spi) --- adafruit_dotstar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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