From 7ad2ac5d7bae41f70df9bcefd7b05584c5f9658a Mon Sep 17 00:00:00 2001 From: Georg Nagel Date: Fri, 10 May 2019 20:16:57 +0200 Subject: [PATCH] fix clock pin when not using SPI --- adafruit_ws2801.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adafruit_ws2801.py b/adafruit_ws2801.py index 53c8524..8aa6de3 100644 --- a/adafruit_ws2801.py +++ b/adafruit_ws2801.py @@ -180,8 +180,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