mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Update view.py
This commit is contained in:
@ -24,6 +24,8 @@ ROOT = None
|
|||||||
class View(object):
|
class View(object):
|
||||||
def __init__(self, config, impl, state=None):
|
def __init__(self, config, impl, state=None):
|
||||||
global ROOT
|
global ROOT
|
||||||
|
global WHITE
|
||||||
|
global BLACK
|
||||||
|
|
||||||
# setup faces from the configuration in case the user customized them
|
# setup faces from the configuration in case the user customized them
|
||||||
faces.load_from_config(config['ui']['faces'])
|
faces.load_from_config(config['ui']['faces'])
|
||||||
@ -31,8 +33,6 @@ class View(object):
|
|||||||
self._invert = config['ui']['invert']
|
self._invert = config['ui']['invert']
|
||||||
|
|
||||||
if self._invert:
|
if self._invert:
|
||||||
global WHITE
|
|
||||||
global BLACK
|
|
||||||
WHITE = 0x00
|
WHITE = 0x00
|
||||||
BLACK = 0xFF
|
BLACK = 0xFF
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user