class documentation
A class to manage the desktop environment for the display.
| Method | __del__ |
Cleanup resources |
| Method | __init__ |
Initialize the desktop environment. |
| Method | clear |
Clear the display with the background color. |
| Method | draw |
Draw the desktop environment with a BMP image from disk. |
| Method | draw |
Draw the header with the board name and Wi-Fi status. |
| Method | set |
Set the battery level on the header. |
| Method | set |
Set the time on the header. |
| Instance Variable | background |
Undocumented |
| Instance Variable | battery |
Undocumented |
| Instance Variable | battery |
Undocumented |
| Instance Variable | bluetooth |
Undocumented |
| Instance Variable | bluetooth |
Undocumented |
| Instance Variable | display |
Undocumented |
| Instance Variable | draw |
Undocumented |
| Instance Variable | font |
Undocumented |
| Instance Variable | has |
Undocumented |
| Instance Variable | is |
Undocumented |
| Instance Variable | is |
Undocumented |
| Instance Variable | name |
Undocumented |
| Instance Variable | name |
Undocumented |
| Instance Variable | position |
Undocumented |
| Instance Variable | size |
Undocumented |
| Instance Variable | text |
Undocumented |
| Instance Variable | time |
Undocumented |
| Instance Variable | time |
Undocumented |
| Instance Variable | wifi |
Undocumented |
| Instance Variable | wifi |
Undocumented |
Initialize the desktop environment.
| Parameters | |
draw:Draw | The drawing context. |
textint | The text color. Defaults to 0xFFFF. |
backgroundint | The background color. Defaults to 0x0000. |
Draw the header with the board name and Wi-Fi status.
| Parameters | |
wifibool | Whether Wi-Fi is connected. Defaults to True. |