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

Method write_cmd

ssd1306.py:112–115  ·  view source on GitHub ↗
(self, cmd)

Source from the content-addressed store, hash-verified

110 super().__init__(width, height, external_vcc)
111
112 def write_cmd(self, cmd):
113 self.temp[0] = 0x80 # Co=1, D/C#=0
114 self.temp[1] = cmd
115 self.i2c.writeto(self.addr, self.temp)
116
117 def write_data(self, buf):
118 self.write_list[1] = buf

Callers 6

init_displayMethod · 0.45
poweroffMethod · 0.45
poweronMethod · 0.45
contrastMethod · 0.45
invertMethod · 0.45
showMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected