mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Fix waveshare2in7_V2.py
Signed-off-by: jayofelony <oudshoorn.jeroen@gmail.com>
This commit is contained in:
@ -39,7 +39,7 @@ class Waveshare27inchV2(DisplayImpl):
|
||||
|
||||
def render(self, canvas):
|
||||
buf = self._display.getbuffer(canvas)
|
||||
self._display.display_Fast(buf)
|
||||
self._display.display_Partial(buf, 0, 0, 176, 264)
|
||||
|
||||
def clear(self):
|
||||
# This line also removes the 0xFF
|
||||
|
@ -431,7 +431,7 @@ def load_config(args):
|
||||
config['ui']['display']['type'] = 'waveshare13in3k'
|
||||
|
||||
# WeAct e-ink
|
||||
elif config['ui']['display']['type'] in ('weact2in9', 'weact29in', 'weact2in9'):
|
||||
elif config['ui']['display']['type'] in ('weact2in9', 'weact29in'):
|
||||
config['ui']['display']['type'] = 'weact2in9'
|
||||
|
||||
else:
|
||||
|
Reference in New Issue
Block a user