From cb6365b9f21ddfefea8039b33c37ddc87c66ea66 Mon Sep 17 00:00:00 2001 From: Alex Muthmann Date: Fri, 25 Oct 2019 12:18:13 +0200 Subject: [PATCH 1/2] Add missing lcdhat --- pwnagotchi/defaults.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pwnagotchi/defaults.yml b/pwnagotchi/defaults.yml index f7634f1f..07862d97 100644 --- a/pwnagotchi/defaults.yml +++ b/pwnagotchi/defaults.yml @@ -200,7 +200,7 @@ ui: display: enabled: true rotation: 180 - # Possible options inkyphat/inky, papirus/papi, waveshare_1/ws_1 or waveshare_2/ws_2, oledhat, waveshare27inch + # Possible options inkyphat/inky, papirus/papi, waveshare_1/ws_1 or waveshare_2/ws_2, oledhat, lcdhat, waveshare27inch type: 'waveshare_2' # Possible options red/yellow/black (black used for monocromatic displays) color: 'black' From c6c2e0e7ce521d458b7119dc01dd29d54181fc55 Mon Sep 17 00:00:00 2001 From: Alex Muthmann Date: Fri, 25 Oct 2019 12:25:42 +0200 Subject: [PATCH 2/2] Update utils.py --- pwnagotchi/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pwnagotchi/utils.py b/pwnagotchi/utils.py index 1c430f4d..74ad7edf 100644 --- a/pwnagotchi/utils.py +++ b/pwnagotchi/utils.py @@ -85,6 +85,9 @@ def load_config(args): elif config['ui']['display']['type'] in ('ws_27inch', 'ws27inch', 'waveshare_27inch', 'waveshare27inch'): config['ui']['display']['type'] = 'waveshare27inch' + elif config['ui']['display']['type'] in ('lcdhat'): + config['ui']['display']['type'] = 'lcdhat' + else: print("unsupported display type %s" % config['ui']['display']['type']) exit(1)