Merge pull request #886 from elipsius/885/fix-2.7inch-waveshare-gps-display

Updated gps.py to include positioning for the waveshare 2.7 inch scre…
This commit is contained in:
Simone Margaritelli 2020-06-26 14:11:17 +02:00 committed by GitHub
commit cfa034b555
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)