mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Added 38 waveshare displays or so
Layouts may not be correct, but I have no way of testing that.
This commit is contained in:
@ -32,15 +32,15 @@ class Waveshare27inch(DisplayImpl):
|
||||
return self._layout
|
||||
|
||||
def initialize(self):
|
||||
logging.info("initializing waveshare V1 2.7 inch display")
|
||||
logging.info("initializing waveshare 2.7 V1 inch display")
|
||||
from pwnagotchi.ui.hw.libs.waveshare.v2in7.epd2in7 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)
|
||||
|
||||
def clear(self):
|
||||
self._display.Clear(0xff)
|
||||
self._display.Clear()
|
||||
|
Reference in New Issue
Block a user