MCPcopy Create free account
hub / github.com/antirez/freakwan / __init__

Method __init__

ssd1306.py:29–36  ·  view source on GitHub ↗
(self, width, height, external_vcc)

Source from the content-addressed store, hash-verified

27# http://docs.micropython.org/en/latest/pyboard/library/framebuf.html
28class 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 (

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls 1

init_displayMethod · 0.95

Tested by

no test coverage detected