Skip to content
Snippets Groups Projects
Commit 4ee9bc0c authored by Daniel Hoffend's avatar Daniel Hoffend
Browse files

feat(ble.py) colorize active/inactive with green/red

parent 6e712c77
No related branches found
No related tags found
No related merge requests found
......@@ -54,17 +54,17 @@ def is_active():
def headline():
disp.print("BLE", posy=0, fg=[0, 255, 255])
if is_active():
disp.print("active", posy=20, fg=[0, 255, 255])
disp.print("active", posy=20, fg=[0, 255, 0])
mac = load_mac()
if mac is not None:
disp.print(mac[9:], posy=60, fg=[0, 0, 255])
else:
disp.print("inactive", posy=20, fg=[0, 255, 255])
disp.print("inactive", posy=20, fg=[255, 0, 0])
def selector():
triangle(disp, 148, 46, False)
disp.print("toggle", posx=25, posy=40, fg=[0, 255, 0])
disp.print("toggle", posx=25, posy=40, fg=[255, 255, 255])
disp = display.open()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment