or like that?

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

@ -26,13 +26,14 @@ class UnicornHat(object):
self.HEIGHT = height #16
self.rotation = 1
self.brightness = 0.5
self.brightness = 1
self.buffer = numpy.zeros((self.HEIGHT,self.WIDTH,3), dtype=int)
self.reset_clock()
def reset_clock(self):
GPIO.output(self.PIN_CLK, GPIO.LOW)
GPIO.output(self.PIN_CS, GPIO.LOW)
GPIO.output(self.PIN_CS, GPIO.HIGH)
def spi_write(self, buf1, buf2):
GPIO.output(self.PIN_CS, GPIO.LOW)