Update bookworm

This commit is contained in:
Jeroen Oudshoorn
2024-01-04 22:51:52 +01:00
parent 0daa614a1e
commit 93d1c58b80
6 changed files with 20 additions and 38 deletions

View File

@ -16,8 +16,8 @@ from pwnagotchi.ui.components import *
from pwnagotchi.ui.state import State
from pwnagotchi.voice import Voice
WHITE = 0x00
BLACK = 0xff
WHITE = 0xff
BLACK = 0x00
ROOT = None
@ -28,6 +28,14 @@ class View(object):
# setup faces from the configuration in case the user customized them
faces.load_from_config(config['ui']['faces'])
self._invert = config['ui']['invert']
if self._invert:
global WHITE
global BLACK
WHITE = 0x00
BLACK = 0xff
self._agent = None
self._render_cbs = []
self._config = config