Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kriskut08 opened this issue Dec 31, 2023 · 2 comments
Open

Comments

@kriskut08
Copy link

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
@shhds
Copy link
Contributor

shhds commented Jan 5, 2024

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

@kriskut08
Copy link
Author

Thank you :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants