From 22b00311bf9c651f7e134b7bda530088505a08d4 Mon Sep 17 00:00:00 2001 From: makerph Date: Thu, 11 Aug 2022 10:51:34 +0800 Subject: [PATCH] Add Pimoroni Display Hat Support Add Pimoroni Display Hat Support --- pwnagotchi/ui/display.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pwnagotchi/ui/display.py b/pwnagotchi/ui/display.py index ab0f3a15..5eaad12f 100644 --- a/pwnagotchi/ui/display.py +++ b/pwnagotchi/ui/display.py @@ -75,6 +75,9 @@ class Display(View): def is_spotpear24inch(self): return self._implementation.name == 'spotpear24inch' + + def is_displayhatmini(self): + return self._implementation.name == 'displayhatmini' def is_waveshare_any(self): return self.is_waveshare_v1() or self.is_waveshare_v2()