Output subsystem

Currently ZPUI uses HD44780-compatible screens as output devices. Minimum screen size is 128x64, with 320x240 and 400x240 screens tested and working.

Screen object

The o variable you have supplied by main.py load_app() in your applications is an OutputProxy instance. It provides you with a set of functions available to graphical displays, and some fallback functions for character displays.

class output.output.OutputProxy(context_alias)[source]
display_image(image)

A function that shows a PIL.Image on the display. It also saves it in the current_image attribute.

display_data(*data)

A function that is called to show text on the display. Each positional argument is one line of text.

clear()

Clears the display, so that there’s nothing shown on it.

Drivers: