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

Need help running the example for 2in13_v2 #90

Closed
ole-treichel opened this issue Nov 25, 2021 · 2 comments
Closed

Need help running the example for 2in13_v2 #90

ole-treichel opened this issue Nov 25, 2021 · 2 comments

Comments

@ole-treichel
Copy link

Hey, thanks for the library!

I am trying to run the example in examples/epd2in13_v2.rs on a raspberry pi 4. The display is directly connected to the pi via the displays header.

I verified the display is working with the official c example from here.

I cloned the repo and tried two ways of running the example via sudo:

sudo env "PATH=$PATH" cargo run --example epd2in13_v2 (from a normal pi user session)

and directly as root with

cargo run --example epd2in13_v2.

However nothing happens, no output is printed to the terminal, and the display stays blank.

Is it possible that the pins are not identical to the "default" pin configuration of the header?

I am really stuck here, any help on how to debug the issue would be much appreciated!

@lrbalt
Copy link
Contributor

lrbalt commented Nov 25, 2021

Did you try running as root (sudo)? Otherwise you can try the pins from 2in13bc. I needed to change the default to those in that example for my v1 to work. I do not have a V2 though to test

@ole-treichel
Copy link
Author

Awesome that worked! Thanks for the super fast reply 👍

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