diff --git a/pwnagotchi/ui/hw/waveshare3in7.py b/pwnagotchi/ui/hw/waveshare3in7.py index 2b2cf155..91b4c104 100644 --- a/pwnagotchi/ui/hw/waveshare3in7.py +++ b/pwnagotchi/ui/hw/waveshare3in7.py @@ -9,26 +9,26 @@ class Waveshare3in7(DisplayImpl): super(Waveshare3in7, self).__init__(config, 'waveshare3in7') def layout(self): - fonts.setup(10, 8, 10, 18, 25, 9) - self._layout['width'] = 280 - self._layout['height'] = 480 - self._layout['face'] = (0, 43) - self._layout['name'] = (0, 14) + fonts.setup(20, 19, 20, 45, 35, 19) + self._layout['width'] = 480 + self._layout['height'] = 280 + self._layout['face'] = (0,34) + self._layout['name'] = (35,105) self._layout['channel'] = (0, 0) - self._layout['aps'] = (0, 71) - self._layout['uptime'] = (0, 25) - self._layout['line1'] = [0, 12, 280, 12] - self._layout['line2'] = [0, 116, 280, 116] - self._layout['friend_face'] = (12, 88) - self._layout['friend_name'] = (1, 103) - self._layout['shakes'] = (26, 117) - self._layout['mode'] = (0, 117) + self._layout['aps'] = (75,0) + self._layout['uptime'] = (377,0) + self._layout['line1'] = [0, 25, 480, 25] + self._layout['line2'] = [0, 255, 480, 255] + self._layout['friend_face'] = (0, 146) + self._layout['friend_name'] = (40, 146) + self._layout['shakes'] = (0, 258) + self._layout['mode'] = (430, 258) self._layout['status'] = { - 'pos': (65, 26), - 'font': fonts.status_font(fonts.Small), - 'max': 12 + 'pos': (225, 35), + 'font': fonts.status_font(fonts.Medium), + 'max': 21 } - return self._layout + return self._layout def initialize(self): logging.info("initializing waveshare 3.7 inch lcd display")