Merge pull request #727 from ArnCo/master
Set correct position for memtemp plugin so that it does not overlap with regular messages for waveshare27inch.
This commit is contained in:
commit
f141e15ba3
@ -53,6 +53,9 @@ class MemTemp(plugins.Plugin):
|
|||||||
elif ui.is_inky():
|
elif ui.is_inky():
|
||||||
h_pos = (140, 68)
|
h_pos = (140, 68)
|
||||||
v_pos = (165, 54)
|
v_pos = (165, 54)
|
||||||
|
elif ui.is_waveshare27inch():
|
||||||
|
h_pos = (192, 138)
|
||||||
|
v_pos = (216, 122)
|
||||||
else:
|
else:
|
||||||
h_pos = (155, 76)
|
h_pos = (155, 76)
|
||||||
v_pos = (180, 61)
|
v_pos = (180, 61)
|
||||||
|
@ -6,7 +6,7 @@ from pwnagotchi.ui.hw.base import DisplayImpl
|
|||||||
|
|
||||||
class Waveshare27inch(DisplayImpl):
|
class Waveshare27inch(DisplayImpl):
|
||||||
def __init__(self, config):
|
def __init__(self, config):
|
||||||
super(Waveshare27inch, self).__init__(config, 'waveshare_2_7inch')
|
super(Waveshare27inch, self).__init__(config, 'waveshare27inch')
|
||||||
self._display = None
|
self._display = None
|
||||||
|
|
||||||
def layout(self):
|
def layout(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user