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

Increase refresh speed - waveshare 6inch HD e-Paper HAT #89

Open
serafimdasaudade opened this issue Feb 25, 2022 · 4 comments
Open

Increase refresh speed - waveshare 6inch HD e-Paper HAT #89

serafimdasaudade opened this issue Feb 25, 2022 · 4 comments

Comments

@serafimdasaudade
Copy link

Hi,
I'm testing this lib.
I'm using the vnc desktop, and it working. But I start notice that e-paper take a lot of time to update +- 5sec.
The command I'm using:
poetry run papertty --driver it8951 vnc --display 1 --password raspberry --sleep 0.1 --rotate 0

I would like to improve the refresh rate. Any tips?

Cumps,

@joukos
Copy link
Owner

joukos commented Feb 25, 2022

Which RPi are you using? To get decent speeds with a display this size an RPi3b+ / RPi4 might be best. There's a lot of room for optimization in general, though.

@serafimdasaudade
Copy link
Author

serafimdasaudade commented Feb 25, 2022

I'm using a RPI 4.
I'm doing some code teaks, but with no noticeable improvements.

@serafimdasaudade
Copy link
Author

Which RPi are you using? To get decent speeds with a display this size an RPi3b+ / RPi4 might be best. There's a lot of room for optimization in general, though.

Hi, Do you got some tips. Help me go to the correct direction?

Cumps,

@chi-lambda
Copy link
Contributor

chi-lambda commented Apr 1, 2022

You can set the max_speed_hz (driver_it8951.py:183) to something higher. 18 MHz worked for me, but it stopped responding after running it for a few hours. Could be unrelated though. There was no permanent damage as far as I can tell. VNC uses the grayscale instead of black-and-white mode, which uses more data (I think it was a factor of four because even b/w uses 2 bits per pixel) and is therefore slower. You could add another filtering step to turn it into a black-and-white picture after papertty.py:369 to speed things up if you can accept the loss of quality.

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

3 participants