PiSupply / PaPiRus

Resources for PaPiRus ePaper eInk displays
https://www.pi-supply.com/product/papirus-epaper-eink-screen-hat-for-raspberry-pi/
Other
346 stars 85 forks source link

pu_stagetime modification #211

Open gokhanbakan opened 4 years ago

gokhanbakan commented 4 years ago

Hi, I am controlling a Papirus screen (1.44") connected to a Pi 3. I am using fast_update() and modifying the pu_stage time file to set the refresh rate myself as instructed by some of the examples here (e.g., Radar). But I noticed that I cannot save/set the pu_stagetime value outside the range of 50-2000 ms. I am aware that it is not suggested to go faster than 50 ms, but I still would like to see it myself. How can go around this issue? Thanks in advance.

tvoverbeek commented 4 years ago

You would have to modify the epd-fuse service from https://github/repaper/gratis. See the papirus-setup script how to build it (https://github.com/PiSupply/PaPiRus/blob/master/bin/papirus-setup). The relevant file is https://github.com/repaper/gratis/blob/master/PlatformWithOS/driver-common/epd_fuse.c Look at lines 377-383 for reading /dev/epd/pu_stagetime and lines 437-443 for writing where the limits for pu_stagetime are tested. No guarantee the display does not break when using stagetime less than 50.