mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Update 2.7 inch display
This commit is contained in:
@ -35,13 +35,11 @@ class Waveshare27inchV2(DisplayImpl):
|
|||||||
from pwnagotchi.ui.hw.libs.waveshare.v2in7_v2.epd2in7_V2 import EPD
|
from pwnagotchi.ui.hw.libs.waveshare.v2in7_v2.epd2in7_V2 import EPD
|
||||||
self._display = EPD()
|
self._display = EPD()
|
||||||
self._display.init()
|
self._display.init()
|
||||||
# this must have changed by waveshare
|
|
||||||
# remove the 0xFF(Clear(0xFF)) other wise it errors. can't pass oxff and self
|
|
||||||
self._display.Clear()
|
self._display.Clear()
|
||||||
|
|
||||||
def render(self, canvas):
|
def render(self, canvas):
|
||||||
buf = self._display.getbuffer(canvas)
|
buf = self._display.getbuffer(canvas)
|
||||||
self._display.display_Partial(buf, 0, 0, 176, 264)
|
self._display.display_Fast(buf)
|
||||||
|
|
||||||
def clear(self):
|
def clear(self):
|
||||||
# This line also removes the 0xFF
|
# This line also removes the 0xFF
|
||||||
|
Reference in New Issue
Block a user