changeset 9:21eb7e575820 draft default tip

Fix offset when mirroring in uc1701x
author Radomir Dopieralski <sheep-devel@sheep.art.pl>
date Thu, 22 Mar 2018 03:05:09 +0100
parents 524a23cd9991
children
files uc1701x_spi.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/uc1701x_spi.py	Thu Mar 22 03:04:06 2018 +0100
+++ b/uc1701x_spi.py	Thu Mar 22 03:05:09 2018 +0100
@@ -44,6 +44,7 @@
 
     def mirror(self, val):
         self._command(b'\xa0' if val else b'\xa1')
+        self._move[1] = 0 if val else 4
 
     def contrast(self, val):
         self._word[0] = 0x81