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 the Waveshare 2.7 Inch V2 e-Ink display #1189

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion pwnagotchi/ui/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ def is_waveshare_v3(self):
def is_waveshare27inch(self):
return self._implementation.name == 'waveshare27inch'

def is_waveshare27inch_v2(self):
return self._implementation.name == 'waveshare27inch_v2'

def is_waveshare29inch(self):
return self._implementation.name == 'waveshare29inch'

Expand All @@ -69,7 +72,7 @@ def is_waveshare213d(self):

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

def is_waveshare213inb_v4(self):
return self._implementation.name == 'waveshare213inb_v4'

Expand Down
4 changes: 4 additions & 0 deletions pwnagotchi/ui/hw/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
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.waveshare27inch_v2 import Waveshare27inch_v2
from pwnagotchi.ui.hw.waveshare29inch import Waveshare29inch
from pwnagotchi.ui.hw.waveshare144lcd import Waveshare144lcd
from pwnagotchi.ui.hw.waveshare154inch import Waveshare154inch
Expand Down Expand Up @@ -49,6 +50,9 @@ def display_for(config):
elif config['ui']['display']['type'] == 'waveshare27inch':
return Waveshare27inch(config)

elif config['ui']['display']['type'] == 'waveshare27inch_v2':
return Waveshare27inch_v2(config)

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

Expand Down
Empty file.
Loading