mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 11:40:18 +01:00
drivers/display/ssd1306.py: Update to use FrameBuffer not FrameBuffer1
This commit is contained in:
committed by
Damien George
parent
225e22b287
commit
eb09336e99
@@ -32,7 +32,7 @@ class SSD1306:
|
||||
self.external_vcc = external_vcc
|
||||
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.MVLSB)
|
||||
self.poweron()
|
||||
self.init_display()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user