e-Paper
e-Paper copied to clipboard
2.7inch display V2 IndexError: list index out of range error on raspberry
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
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
Thank you :D