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

2.7inch display V2 IndexError: list index out of range error on raspberry

Open kriskut08 opened this issue 1 year ago • 2 comments

when calling the display_4Gray function the program crashes it also happens with the example

Traceback (most recent call last):
  File "/home/raspberry/e-Paper/RaspberryPi_JetsonNano/python/examples/epd_2in7_V2_test.py", line 139, in <module>
    epd.display_4Gray(epd.getbuffer_4Gray(Limage))
  File "/usr/local/lib/python3.11/dist-packages/waveshare_epd-0.0.0-py3.11.egg/waveshare_epd/epd2in7_V2.py", line 450, in display_4Gray
    temp1 = image[i*2+j]
            ~~~~~^^^^^^^
IndexError: list index out of range

kriskut08 avatar Dec 31 '23 19:12 kriskut08

In e-Paper\RaspberryPi_JetsonNano\python\lib\waveshare_epd\epd2in7_V2.py, change line 447 and 48000 in line 479 to 5808. The problem is thought to have been accidentally corrected by an engineer when adding a new screen. We will fix it in the next app update

shhds avatar Jan 05 '24 02:01 shhds

Thank you :D

kriskut08 avatar Jan 06 '24 12:01 kriskut08