Skip to content

Displaying red-white noise on 1.54" ePaper display #17

@besi

Description

@besi

I have the following code in micropython that is running on my Espressif ESP32-PICO-KIT. To this I have attached a WaveShare 1.54" ePaper display (supporting red color).

When I reach the last line the display updates in waves, but I only get white-red noise on the display.

I could (a few years ago) use the same hardware for a test using the Arduino platform.

This is my code:

from machine import Pin, SoftSPI
import epaper1in54b

miso = Pin(9) # not connected
sck = Pin(18) # yellow 
mosi = Pin(23) # white 

cs = Pin(5) # green
dc = Pin(25) # gray
rst = Pin(21) # orange
busy = Pin(19) # gray

spi = SoftSPI(baudrate=20000000, polarity=0, phase=0, sck=sck, mosi=mosi, miso=miso)
e = epaper1in54b.EPD(spi, cs, dc, rst, busy)

e.init()

w = 200
h = 200
x = 0
y = 0


import framebuf
buf = bytearray(w * h // 8)
fb = framebuf.FrameBuffer(buf, w, h, framebuf.MONO_VLSB)
black = 0
white = 1
red = 2
fb.fill(white)
fb.text('Hello world!', 0, 0,black)
e.display_frame(buf,None)

The result

Result

Any help would be appreciated.

Im using MicroPython v1.16 on 2021-06-18; ESP32 module with ESP32

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions