PaperTTY icon indicating copy to clipboard operation
PaperTTY copied to clipboard

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

Open serafimdasaudade opened this issue 2 years ago • 4 comments

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,

serafimdasaudade avatar Feb 25 '22 14:02 serafimdasaudade

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.

joukos avatar Feb 25 '22 19:02 joukos

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

serafimdasaudade avatar Feb 25 '22 20:02 serafimdasaudade

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,

serafimdasaudade avatar Mar 23 '22 09:03 serafimdasaudade

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.

chi-lambda avatar Apr 01 '22 11:04 chi-lambda