jezs00 / pycasso

A system to send AI generated art to an E-Paper display through a Raspberry PI unit
MIT License
70 stars 4 forks source link

Review_Screen Only in B&W, but waveshare epd program in colour #29

Closed recrudesce closed 1 year ago

recrudesce commented 1 year ago

Hey, so I have followed instructions, installed everything, compiled the little EPD test program as per the Waveshare documents, and it shows the pictures in colour.

But when I run the review_screen.py code, or test with omni-epd-test, the picture only shows up in B&W.

Any thoughts ? I have the correct display type set in the config, and it's reading it correctly out of the config, but the picture never shows up in colour.

recrudesce commented 1 year ago

OK, quick update. I reflashed the SD card, started again, and I'm still only getting b&w through omni_epd test tool and Pycasso.

This time I tested the Python code from Waveshare - https://www.waveshare.com/wiki/5.65inch_e-Paper_Module_(F)_Manual#Working_With_Raspberry_Pi (in the python section) and it shows in colour fine.

It seems to completely ignore the mode, and just sticks to B&W. Is there a way to force the mode to colour ?

recrudesce commented 1 year ago

OK, so... this started working fine once I'd actually run the setup for the waveshare python download. It might be worth stipulating that you need to follow the connection, bcm, AND python documentation from Waveshare, and then state that you need to python3 setup.py install the waveshare python too (because their documentation does not mention that at all !)

All good now :D I'm off to find a frame !

jezs00 commented 1 year ago

Reopening this issue as I think I know what happened here.

You shouldn't need to run the waveshare setup. omni-epd uses config to specify color mode, but that only occurs if it's loaded its config.ini, which we remove and replaced with .config in this project. I think it's possible that the review_screen.py was not loading the config file properly and that resulted in default display type being used, and default color which is BW.

In either case, I think for an example script like review_screen it's better just to ask for input in command line to determine whether the user wants bw or color. I will close once I've implemented and tested that.

recrudesce commented 1 year ago

Confirmed this works perfectly - test images show up in colour :)