TomBric / stratux-radar-display

Display for Stratux Europe Edition, can run standalone
36 stars 12 forks source link

epaper 2in7b #55

Closed rudiratlos closed 2 years ago

rudiratlos commented 2 years ago

HI, how can I get my epaper 2in7b (rpi HAT version with 4 buttons) working? demo from waveshare was running.

on local stratux: installed the SW according your docu. I created a new dir: /home/pi/stratux-radar-display/main/displays/Epaper_2in7b copied all contents (also subdirs) from /home/pi/stratux-radar-display/main/displays/Epaper_1in54 copied epd2in7b.py epd2in7b_V2.py from waveshare

# Pin definition
RST_PIN         = 17
DC_PIN          = 25
CS_PIN          = 8
BUSY_PIN        = 24

changed in file controller.py line 34: from . import epd2in7b line 150: device = epd2in7b.EPD()

in stratux_radar.sh: cd /home/pi/stratux-radar-display/main && python3 radar.py -d Epaper_2in7b &

but nothing works any ideas?

TomBric commented 2 years ago

Hi Rudi,

epaper 2in7 is currently not supported. To get it running, it would be more than just attaching the device. This epaper has a different pixel size and all the display topics would have to be modified to fit to this pixelsize. The file "controller.py" has to be modified for every device, so that the display is really used for its full pixels.

This 2.7 epaper furthermore does not support partial refresh. The data sheet says it has a refresh time of 6 seconds. This makes it not usable for displaying aircraft in time. The 3.7 inch display comes with a partial refresh of 0.4 seconds.

Thomas

rudiratlos commented 2 years ago

ok thanx, the 3.7" is to big for my case. What is the SKU (OrderNumber from waveshare for the 1.54")? SKU 12955

TomBric commented 2 years ago

Concerning 1.54 there are two options: Waveshare 12955 1.54inch epaper Display (hat is included) or Waveshare 12561+hat 13512. I recommend 12955.

Thomas