mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Display update
This commit is contained in:
@ -2,22 +2,64 @@ 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.dfrobot1 import DFRobotV1
|
||||
from pwnagotchi.ui.hw.dfrobot2 import DFRobotV2
|
||||
from pwnagotchi.ui.hw.waveshare1 import WaveshareV1
|
||||
from pwnagotchi.ui.hw.waveshare2 import WaveshareV2
|
||||
from pwnagotchi.ui.hw.waveshare3 import WaveshareV3
|
||||
from pwnagotchi.ui.hw.waveshare4 import WaveshareV4
|
||||
from pwnagotchi.ui.hw.waveshare27inch import Waveshare27inch
|
||||
from pwnagotchi.ui.hw.waveshare27inchv2 import Waveshare27inchV2
|
||||
from pwnagotchi.ui.hw.waveshare29inch import Waveshare29inch
|
||||
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.waveshare35lcd import Waveshare35lcd
|
||||
from pwnagotchi.ui.hw.spotpear24inch import Spotpear24inch
|
||||
from pwnagotchi.ui.hw.dfrobot import DFRobotV1
|
||||
from pwnagotchi.ui.hw.dfrobot_v2 import DFRobotV2
|
||||
from pwnagotchi.ui.hw.waveshare2in13 import WaveshareV1
|
||||
from pwnagotchi.ui.hw.waveshare2in13_V2 import WaveshareV2
|
||||
from pwnagotchi.ui.hw.waveshare2in13_V3 import WaveshareV3
|
||||
from pwnagotchi.ui.hw.waveshare2in13_V4 import WaveshareV4
|
||||
from pwnagotchi.ui.hw.waveshare2in7 import Waveshare27inch
|
||||
from pwnagotchi.ui.hw.waveshare2in7_V2 import Waveshare27inchV2
|
||||
from pwnagotchi.ui.hw.waveshare2in9 import Waveshare29inch
|
||||
from pwnagotchi.ui.hw.waveshare2in9_V2 import Waveshare29inchV2
|
||||
from pwnagotchi.ui.hw.waveshare1in44lcd import Waveshare144lcd
|
||||
from pwnagotchi.ui.hw.waveshare1in54b import Waveshare154inchb
|
||||
from pwnagotchi.ui.hw.waveshare2in13bc import Waveshare213bc
|
||||
from pwnagotchi.ui.hw.waveshare2in13d import Waveshare213d
|
||||
from pwnagotchi.ui.hw.waveshare2in13b_V4 import Waveshare213bV4
|
||||
from pwnagotchi.ui.hw.waveshare3in5lcd import Waveshare35lcd
|
||||
from pwnagotchi.ui.hw.spotpear24in import Spotpear24inch
|
||||
from pwnagotchi.ui.hw.displayhatmini import DisplayHatMini
|
||||
# from pwnagotchi.ui.hw.waveshare1in02 import Waveshare102
|
||||
from pwnagotchi.ui.hw.waveshare1in54 import Waveshare154
|
||||
from pwnagotchi.ui.hw.waveshare1in54_V2 import Waveshare154V2
|
||||
from pwnagotchi.ui.hw.waveshare1in54b_V2 import Waveshare154bV2
|
||||
# from pwnagotchi.ui.hw.waveshare1in54c import Waveshare154c
|
||||
# from pwnagotchi.ui.hw.waveshare1in64g import Waveshare164g
|
||||
from pwnagotchi.ui.hw.waveshare2in7b import Waveshare27b
|
||||
from pwnagotchi.ui.hw.waveshare2in7b_V2 import Waveshare27bV2
|
||||
from pwnagotchi.ui.hw.waveshare2in9b_V3 import Waveshare29bV3
|
||||
from pwnagotchi.ui.hw.waveshare2in9b_V4 import Waveshare29bV4
|
||||
# from pwnagotchi.ui.hw.waveshare2in9bc import Waveshare29bc
|
||||
# from pwnagotchi.ui.hw.waveshare2in9d import Waveshare29d
|
||||
from pwnagotchi.ui.hw.waveshare2in13b_V3 import Waveshare213bV3
|
||||
# from pwnagotchi.ui.hw.waveshare2in23g import Waveshare223g
|
||||
# from pwnagotchi.ui.hw.waveshare2in36g import Waveshare236g
|
||||
# from pwnagotchi.ui.hw.waveshare2in66 import Waveshare266
|
||||
# from pwnagotchi.ui.hw.waveshare3in0g import Waveshare30g
|
||||
# from pwnagotchi.ui.hw.waveshare3in7 import Waveshare37
|
||||
# from pwnagotchi.ui.hw.waveshare3in52 import Waveshare352
|
||||
# from pwnagotchi.ui.hw.waveshare4in01f import Waveshare401f
|
||||
# from pwnagotchi.ui.hw.waveshare4in2 import Waveshare42inch
|
||||
# from pwnagotchi.ui.hw.waveshare4in2_V2 import Waveshare42V2
|
||||
# from pwnagotchi.ui.hw.waveshare4in2b_V2 import Waveshare42bV2
|
||||
# from pwnagotchi.ui.hw.waveshare4in2bc import Waveshare42bc
|
||||
# from pwnagotchi.ui.hw.waveshare4in26 import Waveshare426
|
||||
# from pwnagotchi.ui.hw.waveshare4in37g import Waveshare437g
|
||||
# from pwnagotchi.ui.hw.waveshare5in65f import Waveshare565f
|
||||
# from pwnagotchi.ui.hw.waveshare5in83 import Waveshare583
|
||||
# from pwnagotchi.ui.hw.waveshare5in83_V2 import Waveshare583V2
|
||||
# from pwnagotchi.ui.hw.waveshare5in83b_V2 import Waveshare583bV2
|
||||
# from pwnagotchi.ui.hw.waveshare5in83b_V2 import Waveshare583bc
|
||||
# from pwnagotchi.ui.hw.waveshare7in3f import Waveshare73f
|
||||
# from pwnagotchi.ui.hw.waveshare7in3g import Waveshare73g
|
||||
# from pwnagotchi.ui.hw.waveshare7in5 import Waveshare75
|
||||
# from pwnagotchi.ui.hw.waveshare7in5_HD import Waveshare75HD
|
||||
# from pwnagotchi.ui.hw.waveshare7in5_V2 import Waveshare75V2
|
||||
# from pwnagotchi.ui.hw.waveshare7in5b_HD import Waveshare75bHD
|
||||
# from pwnagotchi.ui.hw.waveshare7in5b_V2 import Waveshare75bV2
|
||||
# from pwnagotchi.ui.hw.waveshare7in5bc import Waveshare75bc
|
||||
# from pwnagotchi.ui.hw.waveshare13in3k import Waveshare133k
|
||||
|
||||
|
||||
def display_for(config):
|
||||
@ -28,18 +70,42 @@ def display_for(config):
|
||||
elif config['ui']['display']['type'] == 'papirus':
|
||||
return Papirus(config)
|
||||
|
||||
if config['ui']['display']['type'] == 'oledhat':
|
||||
elif config['ui']['display']['type'] == 'oledhat':
|
||||
return OledHat(config)
|
||||
|
||||
if config['ui']['display']['type'] == 'lcdhat':
|
||||
elif config['ui']['display']['type'] == 'lcdhat':
|
||||
return LcdHat(config)
|
||||
|
||||
if config['ui']['display']['type'] == 'dfrobot_1':
|
||||
elif config['ui']['display']['type'] == 'dfrobot_1':
|
||||
return DFRobotV1(config)
|
||||
|
||||
if config['ui']['display']['type'] == 'dfrobot_2':
|
||||
elif config['ui']['display']['type'] == 'dfrobot_2':
|
||||
return DFRobotV2(config)
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare1in54':
|
||||
return Waveshare154(config)
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare1in54_v2':
|
||||
return Waveshare154V2(config)
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare1in54b':
|
||||
return Waveshare154inchb(config)
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare1in54b_v2':
|
||||
return Waveshare154bV2(config)
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare2in7b':
|
||||
return Waveshare27b(config)
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare2in7b_v2':
|
||||
return Waveshare27bV2(config)
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare2in9b_v3':
|
||||
return Waveshare29bV3(config)
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare2in9b_v4':
|
||||
return Waveshare29bV4(config)
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare_1':
|
||||
return WaveshareV1(config)
|
||||
|
||||
@ -52,26 +118,32 @@ def display_for(config):
|
||||
elif config['ui']['display']['type'] == 'waveshare_4':
|
||||
return WaveshareV4(config)
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare27inch':
|
||||
elif config['ui']['display']['type'] == 'waveshare2in7':
|
||||
return Waveshare27inch(config)
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare27inchv2':
|
||||
elif config['ui']['display']['type'] == 'waveshare2in7_v2':
|
||||
return Waveshare27inchV2(config)
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare29inch':
|
||||
elif config['ui']['display']['type'] == 'waveshare2in9':
|
||||
return Waveshare29inch(config)
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare2in9_v2':
|
||||
return Waveshare29inchV2(config)
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare144lcd':
|
||||
return Waveshare144lcd(config)
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare154inch':
|
||||
return Waveshare154inch(config)
|
||||
elif config['ui']['display']['type'] == 'waveshare1in54b':
|
||||
return Waveshare154inchb(config)
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare213d':
|
||||
elif config['ui']['display']['type'] == 'waveshare2in13bc':
|
||||
return Waveshare213bc(config)
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare2in13d':
|
||||
return Waveshare213d(config)
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare213bc':
|
||||
return Waveshare213bc(config)
|
||||
elif config['ui']['display']['type'] == 'waveshare2in13b_v4':
|
||||
return Waveshare213bV4(config)
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare35lcd':
|
||||
return Waveshare35lcd(config)
|
||||
@ -81,3 +153,102 @@ def display_for(config):
|
||||
|
||||
elif config['ui']['display']['type'] == 'displayhatmini':
|
||||
return DisplayHatMini(config)
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare1in54c':
|
||||
return
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare1in64g':
|
||||
return
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare1in02':
|
||||
return
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare2in9bc':
|
||||
return
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare2in9d':
|
||||
return
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare2in13b_v3':
|
||||
return
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare2in23g':
|
||||
return
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare2in36g':
|
||||
return
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare2in66':
|
||||
return
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare3in0g':
|
||||
return
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare3in7':
|
||||
return
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare3in52':
|
||||
return
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare4in01f':
|
||||
return
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare4in2':
|
||||
return
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare4in2_v2':
|
||||
return
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare4in2b_v2':
|
||||
return
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare4in2bc':
|
||||
return
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare4in26':
|
||||
return
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare4in37g':
|
||||
return
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare5in65f':
|
||||
return
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare5in83':
|
||||
return
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare5in83_v2':
|
||||
return
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare5in83b_v2':
|
||||
return
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare5in83bc':
|
||||
return
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare7in3f':
|
||||
return
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare7in3g':
|
||||
return
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare7in5':
|
||||
return
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare7in5_HD':
|
||||
return
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare7in5_v2':
|
||||
return
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare7in5b_HD':
|
||||
return
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare7in5b_v2':
|
||||
return
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare7in5bc':
|
||||
return
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare13in3k':
|
||||
return
|
||||
|
Reference in New Issue
Block a user