Add Pimoroni Display Hat Support

Add Pimoroni Display Hat Support
This commit is contained in:
makerph
2022-08-11 10:51:34 +08:00
committed by GitHub
parent 02a6063f12
commit 22b00311bf

View File

@ -76,6 +76,9 @@ class Display(View):
def is_spotpear24inch(self): def is_spotpear24inch(self):
return self._implementation.name == 'spotpear24inch' return self._implementation.name == 'spotpear24inch'
def is_displayhatmini(self):
return self._implementation.name == 'displayhatmini'
def is_waveshare_any(self): def is_waveshare_any(self):
return self.is_waveshare_v1() or self.is_waveshare_v2() return self.is_waveshare_v1() or self.is_waveshare_v2()