Updated gps.py to include positioning for the waveshare 2.7 inch screen, tested on my hardware:

Raspberry Pi 3 /w waveshare 2.7 inch epaper hat, and USB GPS/GLONASS U-blox7

Signed-off-by: Eric M Lipsius <eric.lipsius@gmail.com>
This commit is contained in:
Eric M Lipsius 2020-05-27 00:54:15 -04:00
parent 05b235c38b
commit 929eac7bba

View File

@ -77,6 +77,10 @@ class GPS(plugins.Plugin):
lat_pos = (127, 75)
lon_pos = (122, 84)
alt_pos = (127, 94)
elif ui.is_waveshare27inch():
lat_pos = (6,120)
lon_pos = (1,135)
alt_pos = (6,150)
else:
# guessed values, add tested ones if you can
lat_pos = (127, 51)