mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
waveshare27inchPartial from https://github.com/daniilprohorov/pwnagotchi.git
This commit is contained in:
@ -8,6 +8,7 @@ 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.waveshare27inch import Waveshare27inch
|
||||
from pwnagotchi.ui.hw.waveshare27inchPartial import Waveshare27inchPartial
|
||||
from pwnagotchi.ui.hw.waveshare29inch import Waveshare29inch
|
||||
from pwnagotchi.ui.hw.waveshare144lcd import Waveshare144lcd
|
||||
from pwnagotchi.ui.hw.waveshare154inch import Waveshare154inch
|
||||
@ -48,6 +49,9 @@ def display_for(config):
|
||||
elif config['ui']['display']['type'] == 'waveshare27inch':
|
||||
return Waveshare27inch(config)
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare27inchPartial':
|
||||
return Waveshare27inchPartial(config)
|
||||
|
||||
elif config['ui']['display']['type'] == 'waveshare29inch':
|
||||
return Waveshare29inch(config)
|
||||
|
||||
|
@ -40,7 +40,7 @@ class Waveshare35lcd(DisplayImpl):
|
||||
from pwnagotchi.ui.hw.libs.fb import fb
|
||||
self._display = fb
|
||||
logging.info("initializing waveshare 3,5inch lcd display")
|
||||
self._display.ready_fb(i=1)
|
||||
self._display.ready_fb(i=0)
|
||||
self._display.black_scr()
|
||||
|
||||
def render(self, canvas):
|
||||
|
Reference in New Issue
Block a user