add an image_file driver for development

The driver just writes images to files. This makes it possible to test without
an e-ink display.
This commit is contained in:
Hong Jiang 2023-09-10 16:00:13 +08:00
parent 4efca4ff86
commit 9559206594

View File

@ -0,0 +1,17 @@
# Display resolution
EPD_WIDTH = 800
EPD_HEIGHT = 480
class EPD:
def init(self):
pass
def display(self, image):
image.save('display_image.png')
def getbuffer(self, image):
image.save('getbuffer_image.png')
return image
def sleep(self):
pass