wmarbut / go-epdfuse

A library for interacting with the PaPiRus via the repaper gratis library
GNU General Public License v2.0
16 stars 4 forks source link

Update epdfuse.go #4

Closed kristofer closed 5 years ago

kristofer commented 6 years ago

added a simple WriteImagePartial to do partial updates. If you use this method, you will want to do a full WriteImage every so often to clean up the bits that get missed over time.

For the application I'm using it in, I do a full WriteImage every minute or so, after 30-45 partial updates.

cheers! (and thanks for your work, it's nice to get away from python for using these e-paper displays)

kristofer commented 6 years ago

the failure seems to be in image_test.go at func TestScaleFactor(t *testing.T) { I made no changes in there.

wmarbut commented 5 years ago

@kristofer yeah, I goofed on a %f in my a call to fmt. Older versions of Go didn't care, but newer do. I fixed it.

Thanks for your contribution!!