class documentation
This class provides the screen application.
It deals with the application events that require display on the screen or other actions (e.g. UI menu/data)
It's a singleton.
| Class Method | get |
Return the singleton instance |
| Method | __init__ |
Screen Initialiser |
| Method | clear |
Clear the screen |
| Method | show |
Show an event report |
| Method | show |
Show a screen line. |
| Method | show |
Show the screen with the given lines. |
| Method | _handle |
Undocumented |
| Method | _handle |
Undocumented |
| Method | _handle |
Undocumented |
| Method | _handle |
Undocumented |
| Method | _handle |
Undocumented |
| Method | _handle |
Undocumented |
| Method | _handle |
Undocumented |
| Method | _handle |
Undocumented |
| Method | _handle |
Undocumented |
| Method | _handle |
Undocumented |
| Method | _handle |
Undocumented |
| Method | _handle |
Undocumented |
| Constant | _CV |
Translation table for CV number, value tuples into text. Initial contents decode CV 8 values into manufacturer text. |
| Class Variable | _event |
Undocumented |
| Class Variable | _scrn |
Undocumented |
| Instance Variable | _oled |
Undocumented |
Show an event report
This updates the screen with the event. Other application actions on events are dealt with elsewhere.
| Parameters | |
| report | a tuple containing the reference to the source object, the unique event code see: display and additional information - format and content event specific |
Show a screen line.
This loads the screen page with the given line and then displays it. Each line is described by page number, text and x position.
| Parameters | |
| pgn | page number (1 page per line) |
| text | text to be displayed |
| x | horizontal offset |
Show the screen with the given lines.
This loads the screen with the given lines and then displays it. Each line is a tuple of (page number, text, x position). If the same page number appears multiple times in lines, only the last entry for that page will be displayed.
| Parameters | |
| lines | A list of tuples, each containing (page number, text, x position). |