Fix waveshare2in7_V2.py

Signed-off-by: jayofelony <oudshoorn.jeroen@gmail.com>
This commit is contained in:
jayofelony
2024-03-05 21:48:16 +01:00
parent ebb8fef3fc
commit aeada2ee6e
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ class Waveshare27inchV2(DisplayImpl):
def render(self, canvas): def render(self, canvas):
buf = self._display.getbuffer(canvas) buf = self._display.getbuffer(canvas)
self._display.display_Fast(buf) self._display.display_Partial(buf, 0, 0, 176, 264)
def clear(self): def clear(self):
# This line also removes the 0xFF # This line also removes the 0xFF

View File

@ -431,7 +431,7 @@ def load_config(args):
config['ui']['display']['type'] = 'waveshare13in3k' config['ui']['display']['type'] = 'waveshare13in3k'
# WeAct e-ink # 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' config['ui']['display']['type'] = 'weact2in9'
else: else: