-
Notifications
You must be signed in to change notification settings - Fork 72
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
E-Paper black and white swapped #47
Comments
Never heard of this happening before! You'll want to make sure you have the right version of the display set here. The code here only knows about v1 and v2, do you know if your version is different? I guess you could try to isolate where the problem is. Can you try the waveshare demo repository: https://github.com/waveshare/e-Paper There are some examples in there, you can match the example with your screen and see whether it produces a swapped image as well. https://github.com/waveshare/e-Paper/tree/master/RaspberryPi_JetsonNano/python |
Oh damn i got the V3-Version ... you plan to expand your code for V3 or do you know what is to adapt for the new version? |
I don't have a V3 but I'd be happy to include its code if you can help with some bits, it shouldn't be a lot of effort. The easiest way to do this is to figure out which of these demos work for your version of the display: https://github.com/waveshare/e-Paper/tree/master/RaspberryPi_JetsonNano/python/examples If you can let me know which of the samples worked for you I should be able to figure out the module name. However in that list I don't see a V3, is the product called something else? Could you link to it? If you are curious you can try it yourself too. Inside the sample file, there will be the name of the exact module that it is using to work with your screen. That module, in turn would be placed into this block in waveshare-epaper-display/display.py Lines 15 to 18 in 690adc7
with (substitute the xxxxxxxx ): from waveshare_epd import xxxxxxxx as epd7in5 |
I got i working. epd.display needs now an additional parameter:
I added the line from waveshare example code and it worked well for me but i let you comment if this i correct or not, you are more expert on this.
Thanks for you help. |
Sorry for delay in this, it'll be a few more days before I can get to this and add it to the codebase. So to be clear do you mean Thanks for sorting the code out, I should be able to add it into an if-else statement to get that extra Limage_other |
OK I've merged your code into the main branch. I've tested my own screen to make sure it's still working. You can give it a try, set
If I end up adding more screens in the future I'll consider breaking this variable to make the names include more info. For now hopefully this should work. |
Sorry for delay ... |
🍜 nice! |
Hello,
first of all thanks for that fantastic project.
I got everythinkg working except that black and white on the e-paper is swapped - means the background is black and the text is white.
The generated .svg looks fine - white background and black text.
The example from waveshare works correct.
Do you know whats happened?
Thanks for your help.
The text was updated successfully, but these errors were encountered: