Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pythonNanoGui/drivers/ePaper2in13V4.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import framebuf
import uasyncio as asyncio
from time import sleep_ms, ticks_ms, ticks_us, ticks_diff
from drivers.boolpalette import BoolPalette

class EPD(framebuf.FrameBuffer):
# A monochrome approach should be used for coding this. The rgb method ensures
Expand All @@ -43,6 +44,7 @@ def __init__(self, spi, cs, dc, rst, busy, landscape=False, asyn=False, full=Tru
self._buffer = bytearray(self.height * self.width // 8)
self._mvb = memoryview(self._buffer)
mode = framebuf.MONO_VLSB if landscape else framebuf.MONO_HLSB
self.palette = BoolPalette(mode) # Enable CWriter.
super().__init__(self._buffer, self.width, self.height, mode)
if self._full:
self.init()
Expand Down