Merge pull request #705 from hmax42/master

UI adjustments for waveshare1
This commit is contained in:
evilsocket 2019-12-09 18:09:19 +02:00 committed by GitHub
commit a02960b56d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,4 @@
# WARNING WARNING WARNING WARNING #
#
# This file is recreated with default settings on every pwnagotchi restart, # This file is recreated with default settings on every pwnagotchi restart,
# use /etc/pwnagotchi/config.yml to configure this unit. # use /etc/pwnagotchi/config.yml to configure this unit.
# #

View File

@ -54,6 +54,10 @@ class GPS(plugins.Plugin):
lat_pos = (127, 75) lat_pos = (127, 75)
lon_pos = (122, 84) lon_pos = (122, 84)
alt_pos = (127, 94) alt_pos = (127, 94)
elif ui.is_waveshare_v1():
lat_pos = (130, 70)
lon_pos = (125, 80)
alt_pos = (130, 90)
elif ui.is_inky(): elif ui.is_inky():
# guessed values, add tested ones if you can # guessed values, add tested ones if you can
lat_pos = (112, 30) lat_pos = (112, 30)

View File

@ -44,6 +44,9 @@ class MemTemp(plugins.Plugin):
if ui.is_waveshare_v2(): if ui.is_waveshare_v2():
h_pos = (180, 80) h_pos = (180, 80)
v_pos = (180, 61) v_pos = (180, 61)
elif ui.is_waveshare_v1():
h_pos = (170, 80)
v_pos = (170, 61)
elif ui.is_waveshare144lcd(): elif ui.is_waveshare144lcd():
h_pos = (53, 77) h_pos = (53, 77)
v_pos = (78, 67) v_pos = (78, 67)