(self, width, height, external_vcc)
| 27 | # http://docs.micropython.org/en/latest/pyboard/library/framebuf.html |
| 28 | class SSD1306(framebuf.FrameBuffer): |
| 29 | def __init__(self, width, height, external_vcc): |
| 30 | self.width = width |
| 31 | self.height = height |
| 32 | self.external_vcc = external_vcc |
| 33 | self.pages = self.height // 8 |
| 34 | self.buffer = bytearray(self.pages * self.width) |
| 35 | super().__init__(self.buffer, self.width, self.height, framebuf.MONO_VLSB) |
| 36 | self.init_display() |
| 37 | |
| 38 | def init_display(self): |
| 39 | for cmd in ( |
no test coverage detected