Skip to content

Commit

Permalink
Updated gps.py to include positioning for the waveshare 2.7 inch scre…
Browse files Browse the repository at this point in the history
…en, 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>
  • Loading branch information
elipsius committed May 27, 2020
1 parent 05b235c commit 929eac7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pwnagotchi/plugins/default/gps.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ def on_ui_setup(self, ui):
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)
Expand Down

0 comments on commit 929eac7

Please sign in to comment.