# HG changeset patch # User Radomir Dopieralski # Date 1521684309 -3600 # Node ID 21eb7e57582045179ce21f3503098bb67de2b6f5 # Parent 524a23cd999108da66b7202693f44b39e74d4f4c Fix offset when mirroring in uc1701x diff -r 524a23cd9991 -r 21eb7e575820 uc1701x_spi.py --- 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