working screen. Very laggy though

This commit is contained in:
Remy Moll 2020-10-13 21:37:05 +02:00
parent 5a11459138
commit 6d87e43984

View File

@ -136,7 +136,7 @@ class UnicornHat(object):
##########################################################
## Change to desire
buff1 = numpy.rot90(self.buffer[:self.HEIGHT,:16],1)
buff2 = numpy.rot90(self.buffer[:self.HEIGHT,16:32],2)
buff2 = numpy.rot90(self.buffer[:self.HEIGHT,16:32],1)
##########################################################
buff1, buff2 = [(x.reshape(768) * self.brightness).astype(numpy.uint8).tolist() for x in (buff1, buff2)]