Skip to content

Commit

Permalink
213bc support additions
Browse files Browse the repository at this point in the history
  • Loading branch information
moheshmohan committed Dec 11, 2019
1 parent 6117235 commit eddcf32
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pwnagotchi/ui/hw/__init__.py
Original file line number Diff line number Diff line change
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)
3 changes: 3 additions & 0 deletions pwnagotchi/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 115,9 @@ def load_config(args):
elif config['ui']['display']['type'] in ('ws_213d', 'ws213d', 'waveshare_213d', 'waveshare213d'):
config['ui']['display']['type'] = 'waveshare213d'

elif config['ui']['display']['type'] in ('ws_213bc', 'ws213bc', 'waveshare_213bc', 'waveshare213bc'):
config['ui']['display']['type'] = 'waveshare213bc'

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

Expand Down

0 comments on commit eddcf32

Please sign in to comment.