rm-hull / luma.lcd

Python module to drive PCD8544, HT1621, ST7735, ST7567 and UC1701X-based LCDs
https://luma-lcd.readthedocs.io
MIT License
156 stars 56 forks source link

Support for ST7565 LCD displays #170

Open hannescam opened 1 year ago

hannescam commented 1 year ago

i have done pretty moch evreything in the list ecxept tests wich i do not know how they work (i just use luma.examples)

hannescam commented 12 months ago

i removed the whitespace

hannescam commented 11 months ago

I tried that, but some things are off that arent possible to set from the parameters that are documented and i will try to implement the tests

hannescam commented 11 months ago

i implemented some tests based on the st7567 tests but i cant test it because my raspberry pi broke

thijstriemstra commented 11 months ago

i implemented some tests based on the st7567 tests but i cant test it because my raspberry pi broke

The tests don't require raspberry pi hardware. This is also the reason they can be run in a github actions type of environment.

hannescam commented 11 months ago

i didnt know that but how can i test if they are working and how do they work (i couldnt find any documentation) because when i run them no matter which i got no output

thijstriemstra commented 11 months ago

i didnt know that but how can i test if they are working and how do they work (i couldnt find any documentation) because when i run them no matter which i got no output

You can run the tests by installing tox:

pip install tox

Go to the repository root, and run the tests using tox:

cd luma.lcd
tox -e py310

If you want to test against a different version of python, use one of py37, py38, py39, py310 or py311 instead.

This will download the dependencies and run the tests on your machine. Running the tests works out of the box on linux or mac but not sure about windows.