Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for waveshare 2.13 B display #720

Merged
merged 10 commits into from Jan 13, 2020
3 changes: 3 additions & 0 deletions pwnagotchi/ui/display.py
Expand Up @@ -61,6 +61,9 @@ def is_waveshare154inch(self):
def is_waveshare213d(self):
return self._implementation.name == 'waveshare213d'

def is_waveshare213bc(self):
return self._implementation.name == 'waveshare213bc'

def is_spotpear24inch(self):
return self._implementation.name == 'spotpear24inch'

Expand Down
10 changes: 7 additions & 3 deletions pwnagotchi/ui/hw/__init__.py
Expand Up @@ -10,6 +10,7 @@
from pwnagotchi.ui.hw.waveshare144lcd import Waveshare144lcd
from pwnagotchi.ui.hw.waveshare154inch import Waveshare154inch
from pwnagotchi.ui.hw.waveshare213d import Waveshare213d
from pwnagotchi.ui.hw.waveshare213bc import Waveshare213bc
from pwnagotchi.ui.hw.spotpear24inch import Spotpear24inch

def display_for(config):
Expand Down Expand Up @@ -37,10 +38,10 @@ def display_for(config):

elif config['ui']['display']['type'] == 'waveshare27inch':
return Waveshare27inch(config)

elif config['ui']['display']['type'] == 'waveshare29inch':
return Waveshare29inch(config)

elif config['ui']['display']['type'] == 'waveshare144lcd':
return Waveshare144lcd(config)

Expand All @@ -50,5 +51,8 @@ def display_for(config):
elif config['ui']['display']['type'] == 'waveshare213d':
return Waveshare213d(config)

elif config['ui']['display']['type'] == 'waveshare213bc':
return Waveshare213bc(config)

elif config['ui']['display']['type'] == 'spotpear24inch':
return Spotpear24inch(config)
return Spotpear24inch(config)