From f092205bb010b88a5deb5268d245f3bad3b3a6d7 Mon Sep 17 00:00:00 2001 From: Sniffleupagus Date: Mon, 3 Jul 2023 13:23:58 -0700 Subject: [PATCH] waveshare27inchPartial from https://github.com/daniilprohorov/pwnagotchi.git --- pwnagotchi/ui/hw/__init__.py | 4 ++++ pwnagotchi/ui/hw/waveshare35lcd.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pwnagotchi/ui/hw/__init__.py b/pwnagotchi/ui/hw/__init__.py index eb9beec0..e5d1aec0 100644 --- a/pwnagotchi/ui/hw/__init__.py +++ b/pwnagotchi/ui/hw/__init__.py @@ -8,6 +8,7 @@ from pwnagotchi.ui.hw.waveshare1 import WaveshareV1 from pwnagotchi.ui.hw.waveshare2 import WaveshareV2 from pwnagotchi.ui.hw.waveshare3 import WaveshareV3 from pwnagotchi.ui.hw.waveshare27inch import Waveshare27inch +from pwnagotchi.ui.hw.waveshare27inchPartial import Waveshare27inchPartial from pwnagotchi.ui.hw.waveshare29inch import Waveshare29inch from pwnagotchi.ui.hw.waveshare144lcd import Waveshare144lcd from pwnagotchi.ui.hw.waveshare154inch import Waveshare154inch @@ -48,6 +49,9 @@ def display_for(config): elif config['ui']['display']['type'] == 'waveshare27inch': return Waveshare27inch(config) + elif config['ui']['display']['type'] == 'waveshare27inchPartial': + return Waveshare27inchPartial(config) + elif config['ui']['display']['type'] == 'waveshare29inch': return Waveshare29inch(config) diff --git a/pwnagotchi/ui/hw/waveshare35lcd.py b/pwnagotchi/ui/hw/waveshare35lcd.py index 97011b3a..1c5979b6 100644 --- a/pwnagotchi/ui/hw/waveshare35lcd.py +++ b/pwnagotchi/ui/hw/waveshare35lcd.py @@ -40,7 +40,7 @@ class Waveshare35lcd(DisplayImpl): from pwnagotchi.ui.hw.libs.fb import fb self._display = fb logging.info("initializing waveshare 3,5inch lcd display") - self._display.ready_fb(i=1) + self._display.ready_fb(i=0) self._display.black_scr() def render(self, canvas):