Skip to content

Commit

Permalink
Continuing UI refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
brickbots committed Jun 13, 2024
1 parent 23cbe25 commit fd62288
Show file tree
Hide file tree
Showing 4 changed files with 190 additions and 227 deletions.
13 changes: 10 additions & 3 deletions python/PiFinder/gps_fake.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,18 @@
"""

import time
import datetime


def gps_monitor(gps_queue, console_queue):
time.sleep(5)
while True:
"""
Just sleep for now
"""
time.sleep(0.5)
msg = (
"fix",
{"lat": 34.22, "lon": -118.22, "altitude": 22},
)
gps_queue.put(msg)

msg = ("time", datetime.datetime.now())
gps_queue.put(msg)
2 changes: 1 addition & 1 deletion python/PiFinder/ui/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def screen_update(self, title_bar=True, button_hints=True):
self._gps_brightness if self._gps_brightness > 0 else 0
)
self.draw.text(
(self.display_class.resX * 20, -2),
(self.display_class.resX * 0.8, -2),
self._GPS_ICON,
font=self.fonts.icon_bold_large.font,
fill=_gps_color,
Expand Down
Loading

0 comments on commit fd62288

Please sign in to comment.