This commit is contained in:
Remy Moll 2020-10-13 21:44:37 +02:00
parent 55bf6ee42c
commit 377afd55fa

View File

@ -33,6 +33,7 @@ class UnicornHat(object):
def reset_clock(self): def reset_clock(self):
GPIO.output(self.PIN_CS, GPIO.LOW) GPIO.output(self.PIN_CS, GPIO.LOW)
time.sleep(0.000001)
GPIO.output(self.PIN_CS, GPIO.HIGH) GPIO.output(self.PIN_CS, GPIO.HIGH)
def spi_write(self, buf1, buf2): def spi_write(self, buf1, buf2):