vroland / epdiy

EPDiy is a driver board for affordable e-Paper (or E-ink) displays.
https://vroland.github.io/epdiy-hardware/
GNU Lesser General Public License v3.0
1.32k stars 184 forks source link

LilyGo T5 screen clears with lines #221

Closed skorokithakis closed 1 year ago

skorokithakis commented 1 year ago

I have a LilyGo T5 V3 display and tried the LilyGo T5 PlatformIO example, which works very well and flashes easily, but doesn't display properly. When the display tries to draw something after clearing, there are random vertical lines that run through the length of the display (like a barcode), leading to ghosting.

Has anyone else seen this? The official library works fine.

martinberlin commented 1 year ago

I had this on the T5 S3 version and it's a hardware issue on the screen. And also in that version I had similar issue than what you described. Ah sorry I've seen this wrong. Thought it was the S3 version, but this is the ESP32-WROVER version right?

Please add a link to the specific version and the waveform you select in the epdiy menuconfig you are using so we can reproduce this. Add also what is the program you are building and running in your device.

skorokithakis commented 1 year ago

The official example works fine though?

martinberlin commented 1 year ago

@skorokithakis can you please add details: Exactly what version post a link please to the product (You know there is T5 T5-pro since Lily uses this T5 denomination for many devices) Then also what program, what settings you are using . Without full details is impossible to reproduce please keep it in mind when adding an issue in any repository

skorokithakis commented 1 year ago

This is the listing:

https://m.aliexpress.com/item/1005002006058892.html?spm=a2g0n.order_detail.order_detail_item.4.38c3f19cyLUiOB

This is the code that works great:

https://github.com/Xinyuan-LilyGO/LilyGo-EPD47/tree/master/examples/demo

signal-2023-03-03-02-54-01-978

There's no ghosting at all with it, I'm not sure what waveform it's using, but I assume it's in the repo.

martinberlin commented 1 year ago

Try using the waveform selecting it from menuconfig or inserting it as a build_flag:

 EPD_DISPLAY_TYPE_ED047TC1
 ED047TC1 LILYGO 4.7 inch, correct grays

Please add a photo also of the effect that you are getting when using EPDiy and with what example you get this weird effect.

skorokithakis commented 1 year ago

Here's a photo of the effect:

lala

I'm using the lilygo-t5-47-epd-platformio example.

skorokithakis commented 1 year ago

The example already has EPD_DISPLAY_TYPE_ED047TC1 configured, as far as I can see.

martinberlin commented 1 year ago

Thanks will try it tonight and let you know the result in mine

martinberlin commented 1 year ago

A43E3428-8A63-48AC-B2EA-2704FC5508F1 Tried and demo looks normal. Just tried also to draw a central filled circle. This lines are drawn only for 50 millis or so when updating them comes clear with the image. Sadly I’ve no idea how to reproduce your issue

skorokithakis commented 1 year ago

Ah, that's too bad. I wonder if I have a different version of this, because it happens consistently for me, and only with your library. The lines are always in the same place, as well.

Thanks for your time, I'll update here if I have any more information at some point.

martinberlin commented 1 year ago

It’s not mine is VRoland, I just collaborate. But is actually not the component. There must be something different in your configuration. I suggest forgetting the demos and based on that make your own test program and start drawing something directly with EPDiy instead of using the old version that Lilygo uses.

skorokithakis commented 1 year ago

I'll try that, thanks!

retsamedoc commented 1 year ago

I've seen this issue using the T5-4.7 demo in this repo. It appears to be something to do with the refresh? When running the demo, the issue appears after waking the device up from sleep.

Running this command to clear the screen seems to do better: epd_clear_area_cycles(epd_full_screen(), 2, 12);

matthewfcarlson commented 1 year ago

I'm also seeing this but it seems to be worse in portrait compared to the landscape. I'm digging in and investigating the differences between the lilyGo version and the epdiy version. Running the clear command at the beginning gets it nice and clear, it's just drawing text that seems to cause problems. image

matthewfcarlson commented 1 year ago

It seems strange, sometimes it draws and sometimes it doesn't.

matthewfcarlson commented 1 year ago

Honestly, I wonder if this is related: https://github.com/vroland/epdiy/issues/203#issuecomment-1259978229 It seems like when I do a full screen draw it works great but other times it's pretty usable. https://user-images.githubusercontent.com/6557490/232271298-9fae9dcb-99b8-47c0-9312-7f86d3ba37c1.mp4

I pulled in their waveforms just to see what that does and it doesn't seem to make too much of a difference

martinberlin commented 1 year ago

The issue with this is that Lilygo team kept using an older version of EPDiy V2 while this library kept evolving. I cannot reproduce this for me it’s drawing fine. What I won’t do is to try with their library since it lacks many things that where added here like bugfixes, software rotation and much more.

skorokithakis commented 1 year ago

@martinberlin the issue for me was when I was using this repo. The official LilyGo demo worked fine for me, the example in this repo didn't. If you can't reproduce it, though, it may be something with my display.

martinberlin commented 1 year ago

Please paste here the program where you are experiencing this. I will try it on same LilyGo and we can then check if it's your display or there an issue

skorokithakis commented 1 year ago

It's this:

https://github.com/vroland/epdiy/blob/master/examples/lilygo-t5-47-epd-platformio/src/main.cpp

martinberlin commented 1 year ago

It must be something with your display. You should contact Lilygo and ask for a replacement. Just tried the demo, opened it with Platformio, and it works as expected. I don't see any of this lines in the screen. IMG_3124 IMG_3122