"""Main thread function to loop through all displays and update them"""
while True:
for display in displays:
- display.background()
+ display._background() # pylint: disable=protected-access
def release_displays() -> None:
initialization so the display is active as long as possible.
"""
for display in displays:
- display.release()
+ display._release() # pylint: disable=protected-access
displays.clear()
for display_bus in display_buses:
)
return areas
- def background(self):
+ def _background(self):
"""Run background refresh tasks. Do not call directly"""
if (
self._auto_refresh
self._core.fill_area(area, mask, buffer)
return buffer
- def release(self) -> None:
+ def _release(self) -> None:
"""Release the display and free its resources"""
self.auto_refresh = False
self._core.release_display_core()
- def reset(self) -> None:
+ def _reset(self) -> None:
"""Reset the display"""
self.auto_refresh = True
circuitpython_splash.x = 0