Mercurial > micropython-oled
changeset 6:a1bf7bed1be2 draft
Skip memoryview in the pcd8544
| author | Radomir Dopieralski <sheep-devel@sheep.art.pl> |
|---|---|
| date | Thu, 22 Feb 2018 19:55:27 +0100 |
| parents | 5bc720d5b3df |
| children | 8e37a379b07d |
| files | pcd8544_spi.py |
| diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/pcd8544_spi.py Thu Feb 22 10:54:31 2018 +0100 +++ b/pcd8544_spi.py Thu Feb 22 19:55:27 2018 +0100 @@ -12,10 +12,9 @@ self._rst = rst or (lambda x: x) self._dc = dc self._fn = 0x20 - buffer = bytearray(504) - self.fb = framebuf.FrameBuffer(buffer, 84, 48, framebuf.MONO_VLSB) - self._buffer = memoryview(buffer) - + self._buffer = bytearray(504) + self.fb = framebuf.FrameBuffer(self._buffer, 84, 48, + framebuf.MONO_VLSB) self.reset() def _command(self, command):
