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

Method display

resources/waveshare_epd/gc9a01.py:116–121  ·  view source on GitHub ↗

Write a full-screen RGB565 buffer to the display.

(self, buf)

Source from the content-addressed store, hash-verified

114 return bytes(buf)
115
116 def display(self, buf):
117 """Write a full-screen RGB565 buffer to the display."""
118 if not self._initialized:
119 self.init()
120 self._set_window(0, 0, self.width - 1, self.height - 1)
121 self._write_data_bulk(buf)
122
123 def displayPartial(self, buf):
124 """TFT supports instant full-frame updates; treated same as display()."""

Callers 2

_run_max7219Method · 0.95
displayPartialMethod · 0.95

Calls 3

initMethod · 0.95
_set_windowMethod · 0.95
_write_data_bulkMethod · 0.95

Tested by

no test coverage detected