Search found 2 matches

by snurre
Sun Dec 27, 2020 10:03 pm
Forum: ESP32 boards
Topic: Connecting LOLIN/WEMOS D32Pro V2.0 and 2.13 Inch e-paper
Replies: 12
Views: 13693

Re: Connecting LOLIN/WEMOS D32Pro V2.0 and 2.13 Inch e-paper

Shorter and rotation both ways. width = 250 height = 122 j_width = (width + 7) & 0xfff8 # Rounded up to next whole byte j_height = (height + 7) & 0xfff8 widebuf = bytearray(j_width * height // 8) wf = framebuf.FrameBuffer(widebuf, j_width, height, framebuf.MONO_HLSB) def displayRotatedBuffer90(): gl...
by snurre
Tue Dec 22, 2020 9:19 pm
Forum: ESP32 boards
Topic: Connecting LOLIN/WEMOS D32Pro V2.0 and 2.13 Inch e-paper
Replies: 12
Views: 13693

Re: Connecting LOLIN/WEMOS D32Pro V2.0 and 2.13 Inch e-paper

Hi! I've created a landscape hack using a new framebuffer. My work is also based on T-Wilko's IL3897-driver: https://github.com/T-Wilko/MicroPython-IL3897-driver Based on the example there: import epaper import framebuf width = 256 # 250x122 pixels/bits, but need whole bytes for easy copy to the scr...