adafruit / Adafruit_EPD

e-paper display driver for Arduino
140 stars 56 forks source link

Adafruit 152x152 Tri-Color eInk IL0373 Glitch #57

Closed haofengac closed 2 years ago

haofengac commented 2 years ago

Hi, I'm using this eInk display: https://www.adafruit.com/product/3625 but the default script seems to be problematic.

I'm using the EPD example here: https://github.com/adafruit/Adafruit_EPD/blob/master/examples/ThinkInk_tricolor/ThinkInk_tricolor.ino

uncommented the line below:

// 1.54" 152x152 Tricolor EPD with ILI0373 chipset
ThinkInk_154_Tricolor_Z17 display(EPD_DC, EPD_RESET, EPD_CS, SRAM_CS, EPD_BUSY);

on an Arduino Uno WIFI Rev2 board. I'm getting some glitches in the default display test.

The default rectangle test: 2031639720037_ pic

The rectangle test, with rotation set to 2: 2041639720038_ pic

the above image looks fine, so I think the problematic pixel offset occurs only horizontally.

testing fillRect by drawing a square in the middle:

2051639720040_ pic

I also made the board display a black "AB" and red "CD", and the results with rotations 3 and 2 are attached. Default rotation 3: rotation_3 rotation 2: rotation_2

Any help is greatly appreciated!

makermelissa commented 2 years ago

I just tested this using the latest version of the library with the same display and a Metro M4 and did not experience this issue. There's a couple of differences in my setup compared to yours:

  1. I'm using the latest stable version of Arduino (1.8.19)
  2. I'm using an Adafruit Metro M4 (I don't have an Arduino WiFi nor are they available right now)

Just to rule out some stuff, you can try a stable version of Arduino IDE and if you have another board, please try that. If you are still having trouble, please post your issue on forums.adafruit.com or you can ask on the discord server. Since this issue appears to be specific to your setup, I'm going to close this for now.