Adding support for Waveshare LCD Hat (ST7789 chip)

This commit is contained in:
root
2019-10-19 04:49:38 +01:00
parent be2cd8293f
commit 0ea67cb97f
8 changed files with 324 additions and 0 deletions

View File

@ -1,6 +1,7 @@
from pwnagotchi.ui.hw.inky import Inky
from pwnagotchi.ui.hw.papirus import Papirus
from pwnagotchi.ui.hw.oledhat import OledHat
from pwnagotchi.ui.hw.lcdhat import LcdHat
from pwnagotchi.ui.hw.waveshare1 import WaveshareV1
from pwnagotchi.ui.hw.waveshare2 import WaveshareV2
@ -16,6 +17,10 @@ def display_for(config):
if config['ui']['display']['type'] == 'oledhat':
return OledHat(config)
if config['ui']['display']['type'] == 'lcdhat':
return LcdHat(config)
elif config['ui']['display']['type'] == 'waveshare_1':
return WaveshareV1(config)