Mercurial > micropython-oled
changeset 8:524a23cd9991 draft
Fix mirroring of uc1701x
| author | Radomir Dopieralski <sheep-devel@sheep.art.pl> |
|---|---|
| date | Thu, 22 Mar 2018 03:04:06 +0100 |
| parents | 8e37a379b07d |
| children | 21eb7e575820 |
| files | uc1701x_spi.py |
| diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/uc1701x_spi.py Thu Mar 22 02:58:23 2018 +0100 +++ b/uc1701x_spi.py Thu Mar 22 03:04:06 2018 +0100 @@ -15,8 +15,9 @@ buffer = bytearray(width * pages) self.fb = framebuf.FrameBuffer(buffer, width, height, framebuf.MVLSB) self._buffer = memoryview(buffer) - self._move = bytearray(b'\xb0\x00\x10') + self._move = bytearray(b'\xb0\x04\x10') self.reset() + self.mirror(0) self.active(1) def _command(self, data):
