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

Please, elaborate README.md with more detailed description of partial update #193

Closed vitasam closed 2 years ago

vitasam commented 6 years ago

Hello, what is a correct way to use partial update feature of the library? I want to combine a speed of partial display update with a quality of full display update (means no dark 'artifacts' left on a screen).

I ended up with such a code but not sure that it is optimal:

textpos = PapirusTextPos()
textpos.partialUpdates = True
textpos.AddText("Temperature, C:", 0, 0, size = f_t_size, fontPath = BOLD_FONT_FIL$
textpos.AddText(t_line, 140, 0, size = f_t_size, fontPath = BOLD_FONT_FILE .....
textpos.AddText(sum_line, 0, space, size = f_s_size, fontPath = BOLD_FONT_FILE, .....
textpos.AddText(now_time, 125, 85, size = 10, fontPath = FONT_FILE, .....
textpos.partialUpdates = False
textpos.WriteAll()

Please, elaborate README.md with more detailed description of partial update