waveshareteam / e-Paper

1.34k stars 596 forks source link

E-paper display not working #349

Open Fqlox opened 4 months ago

Fqlox commented 4 months ago

I wanted to connect a epaper display to my rasberry pi model 4, I got a 7.5 inch model (640x384px) 1 bit color with a epaper driver hat rev 2.3. I did the installation of epaper setup but still got nothing printed out into the display using python script. I tried all the the edp_7## script to get the right one.

I also did some simpliest code to try to decipher any error :

import logging
from waveshare_epd import epd7in5
import time
from PIL import Image,ImageDraw,ImageFont
import traceback

print("1")
epd = epd7in5.EPD()
print("2")

epd.init()

print("3")

epd.Clear()

print("4")
Himage = Image.new('1', (640, 384), 255)  # 255: clear the frame
epd.display(epd.getbuffer(Himage))
print("5")
time.sleep(2)

It prints out :

>> 1
2
3
4
5

It shows any error, any warning, the driverhat is directly connected to the rasberry pi.

W11T commented 1 month ago

Yes, you are writing to the console and not writing anything to the e-Paper. Yust have a look at the examples in e-Paper/RaspberryPi_JetsonNano//examples/epd_7in.