Send a list of command bytes as a block write.
(self, cmds)
| 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.""" |