e-Paper icon indicating copy to clipboard operation
e-Paper copied to clipboard

epd1in54b (V1) dim red color and border around screen on RasPi 4B

Open ShadF0x opened this issue 2 years ago • 3 comments

Tried running RasPi epd1in54b demo for V1 display.

Red color is very dim, almost invisible. If I draw the same framebuffer as both red and black the picture gets better, but it's still nowhere near as vivid as I saw in other people's projects.

Also, the demo causes a thin black border to appear around the edge of the panel.

Documentation on the panel says that both the contrast and the border can be controlled via either VCOM or "Border Waveform Control register", but I can't find any info on how to actually do it.

ShadF0x avatar Aug 29 '22 22:08 ShadF0x

Have you found how to do this yet? I will have a play this morning.

cjs30 avatar Sep 13 '22 06:09 cjs30

Nope.

After reading the specs some more, I've found something that mentions Border Waveform Control on page 25.

Seems like the doc references to this: https://github.com/waveshare/e-Paper/blob/dee10ea85d16df3e8879c31ad4f16d1925551307/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd1in54b_V2.py#L111

In theory, if you change 0x3C to something else (say, to 0x38 or 0x3F), it should affect the red channel.

That said, I didn't have time to test it yet, and I have no idea what most of the abbreviations they use mean (even after googling), so I might be dead wrong.

ShadF0x avatar Sep 13 '22 21:09 ShadF0x

I was able to change the border of my display to black with

_writeCommand(0x3C); // BorderWavefrom
_writeData(0x00);

instead of the orginal which gave a white border

_writeCommand(0x3C); // BorderWavefrom
_writeData(0x05);

but i didn't found a description of the values for this command.

w3p706 avatar Nov 08 '22 04:11 w3p706