mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Update several displays
Signed-off-by: jayofelony <oudshoorn.jeroen@gmail.com>
This commit is contained in:
@ -32,14 +32,14 @@ class Waveshare27bV2(DisplayImpl):
|
||||
|
||||
def initialize(self):
|
||||
logging.info("initializing waveshare V1 2.7b inch display")
|
||||
from pwnagotchi.ui.hw.libs.waveshare.v2in7b.epd2in7b import EPD
|
||||
from pwnagotchi.ui.hw.libs.waveshare.v2in7b_v2.epd2in7b_V2 import EPD
|
||||
self._display = EPD()
|
||||
self._display.init()
|
||||
self._display.Clear(0xFF)
|
||||
self._display.Clear()
|
||||
|
||||
def render(self, canvas):
|
||||
buf = self._display.getbuffer(canvas)
|
||||
self._display.display(buf, None)
|
||||
|
||||
def clear(self):
|
||||
self._display.Clear(0xff)
|
||||
self._display.Clear()
|
||||
|
@ -40,7 +40,7 @@ class Waveshare29inchV2(DisplayImpl):
|
||||
|
||||
def render(self, canvas):
|
||||
buf = self._display.getbuffer(canvas)
|
||||
self._display.display(buf)
|
||||
self._display.display_Partial(buf)
|
||||
|
||||
def clear(self):
|
||||
self._display.Clear(0xFF)
|
||||
|
@ -40,7 +40,7 @@ class Waveshare29bV4(DisplayImpl):
|
||||
|
||||
def render(self, canvas):
|
||||
buf = self._display.getbuffer(canvas)
|
||||
self._display.display(buf, None)
|
||||
self._display.display_Partial(buf, 0, 0, 128, 296)
|
||||
|
||||
def clear(self):
|
||||
self._display.Clear()
|
||||
|
Reference in New Issue
Block a user