From 6372e966e7ed288d86d02f516fbc505d1f5d7506 Mon Sep 17 00:00:00 2001 From: Remy Moll Date: Wed, 28 Oct 2020 15:31:16 +0100 Subject: [PATCH] Whoops, better? --- clock/api/hat/unicorn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clock/api/hat/unicorn.py b/clock/api/hat/unicorn.py index 74f9fd5..47a730a 100644 --- a/clock/api/hat/unicorn.py +++ b/clock/api/hat/unicorn.py @@ -141,8 +141,8 @@ class UnicornHat(object): """Output the contents of the buffer to Unicorn HAT HD.""" ########################################################## ## Change to desire - buff2 = numpy.rot90(self.buffer[:self.HEIGHT,:16],1) - buff1 = numpy.rot90(self.buffer[:self.HEIGHT,16:32],3) + buff2 = numpy.rot90(self.buffer[:self.HEIGHT,:16],3) + buff1 = 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)]