Tracker-Seite und -daten vorbereitet
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
"""
|
||||
Tracker with MQTT client
|
||||
- currentry only Ragatta hero supported
|
||||
|
||||
TODO get data from mqtt thread
|
||||
|
||||
"""
|
||||
|
||||
import cairo
|
||||
@@ -10,6 +13,12 @@ class Tracker(Page):
|
||||
|
||||
def __init__(self, pageno, cfg, boatdata):
|
||||
super().__init__(pageno, cfg, boatdata)
|
||||
self.buttonlabel[1] = 'MODE'
|
||||
|
||||
def handle_key(self, buttonid):
|
||||
global tracker_active;
|
||||
if buttonid == 1:
|
||||
tracker_active = not tracker_active
|
||||
|
||||
def draw(self, ctx):
|
||||
# Name
|
||||
|
||||
Reference in New Issue
Block a user