From fe0b23625b743621b202d146175920e82f79ff5e Mon Sep 17 00:00:00 2001 From: scifijunkie Date: Mon, 18 Jul 2022 16:56:37 -0500 Subject: [PATCH] Better ui elements for Waveshare 128x64px OLED #1030. -Incorporated changes from slabua/pwnagotchi on Github. --- pwnagotchi/ui/hw/oledhat.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pwnagotchi/ui/hw/oledhat.py b/pwnagotchi/ui/hw/oledhat.py index 1e66a2a..c26c930 100644 --- a/pwnagotchi/ui/hw/oledhat.py +++ b/pwnagotchi/ui/hw/oledhat.py @@ -10,22 +10,22 @@ class OledHat(DisplayImpl): self._display = None def layout(self): - fonts.setup(8, 8, 8, 8, 25, 9) + fonts.setup(8, 8, 8, 10, 10, 8) self._layout['width'] = 128 self._layout['height'] = 64 - self._layout['face'] = (0, 32) + self._layout['face'] = (0, 30) self._layout['name'] = (0, 10) - self._layout['channel'] = (0, 0) - self._layout['aps'] = (25, 0) - self._layout['uptime'] = (65, 0) + self._layout['channel'] = (72, 10) + self._layout['aps'] = (0, 0) + self._layout['uptime'] = (87, 0) self._layout['line1'] = [0, 9, 128, 9] - self._layout['line2'] = [0, 53, 128, 53] + self._layout['line2'] = [0, 54, 128, 54] self._layout['friend_face'] = (0, 41) self._layout['friend_name'] = (40, 43) - self._layout['shakes'] = (0, 53) - self._layout['mode'] = (103, 10) + self._layout['shakes'] = (0, 55) + self._layout['mode'] = (107, 10) self._layout['status'] = { - 'pos': (30, 18), + 'pos': (37, 19), 'font': fonts.status_font(fonts.Small), 'max': 18 }