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

Method write_cmd

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

Source from the content-addressed store, hash-verified

139 super().__init__(width, height, external_vcc)
140
141 def write_cmd(self, cmd):
142 self.spi.init(baudrate=self.rate, polarity=0, phase=0)
143 self.cs(1)
144 self.dc(0)
145 self.cs(0)
146 self.spi.write(bytearray([cmd]))
147 self.cs(1)
148
149 def write_data(self, buf):
150 self.spi.init(baudrate=self.rate, polarity=0, phase=0)

Callers

nothing calls this directly

Calls 2

initMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected