MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _write_cmd_sequence

Method _write_cmd_sequence

resources/waveshare_epd/ssd1306.py:179–185  ·  view source on GitHub ↗

Send a list of command bytes as a block write.

(self, cmds)

Source from the content-addressed store, hash-verified

177 raise
178
179 def _write_cmd_sequence(self, cmds):
180 """Send a list of command bytes as a block write."""
181 try:
182 self._bus.write_i2c_block_data(self._addr, _CTRL_CMD, list(cmds))
183 except Exception as exc:
184 logger.error("SSD1306 command sequence write failed: %s", exc)
185 raise
186
187 def _set_addressing(self):
188 """Set column/page addressing to cover the full 128x64 frame."""

Callers 1

_set_addressingMethod · 0.95

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected