nrf5/examples: Updating ili9341 example to use new Frambuffer object instead of legacy Framebuffer1.

This commit is contained in:
Glenn Ruben Bakke 2017-05-29 23:03:31 +02:00 committed by glennrub
parent 8b9f14244d
commit 0bce2ea74a
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ class ILI9341:
self.height = height
self.pages = self.height // 8
self.buffer = bytearray(self.pages * self.width)
self.framebuf = framebuf.FrameBuffer1(self.buffer, self.width, self.height)
self.framebuf = framebuf.FrameBuffer(self.buffer, self.width, self.height, framebuf.MONO_VLSB)
self.spi = SPI(0)
# chip select