From 55bf6ee42c27ccbfee1c236d9d19fb0d1b53ea4e Mon Sep 17 00:00:00 2001 From: Remy Moll Date: Tue, 13 Oct 2020 21:44:18 +0200 Subject: [PATCH] or like that? --- dashboard_api/hat/unicorn.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dashboard_api/hat/unicorn.py b/dashboard_api/hat/unicorn.py index f7ec284..c6bd582 100644 --- a/dashboard_api/hat/unicorn.py +++ b/dashboard_api/hat/unicorn.py @@ -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)