Live data from Hacker News

Show HN: ePaper.js – Easily create an ePaper display using JavaScript and HTML

github.com

11–14 of 14 posts

Re: Show HN: ePaper.js – Easily create an ePaper display using JavaScript and HTML

#11
post #8

When using my reader, sometimes mutations require a full screen invert. Sometimes stuff just seems to change trivially. What governs that? Is that done by the display or driver or higher level code?

The problem with e-ink is that redrawing pixels without cycling leads to ghosting after a few draws. Most displays automatically cycles the entire screen now and then to mitigate this. I guess it's up to software or firmware to detect when to do it.

The Waveshare displays do support partial refresh, but I haven't had time to look into exposing it into Node, yet.

Re: Show HN: ePaper.js – Easily create an ePaper display using JavaScript and HTML

#12

When using my reader, sometimes mutations require a full screen invert. Sometimes stuff just seems to change trivially. What governs that? Is that done by the display or driver or higher level code?

Application driven. KOReader (which I use on my Kindle) lets you even configure this to every X pages.

Re: Show HN: ePaper.js – Easily create an ePaper display using JavaScript and HTML

#13

When using my reader, sometimes mutations require a full screen invert. Sometimes stuff just seems to change trivially. What governs that? Is that done by the display or driver or higher level code?

Here is a good video on that subject:

https://www.youtube.com/watch?v=MsbiO8EAsGw

Re: Show HN: ePaper.js – Easily create an ePaper display using JavaScript and HTML

#14
post #3

Looks very cool and promising. I'm wondering what's the power draw for the Pi with this one since it "Loads index.html in a headless instance of Chromium, using Puppeteer". Isn't Puppeteer quite a power hungry process? Would it run on Pi Zero with a battery attached and how long would it last with updates once a minute or once every 5 minutes? I'm thinking about possible projects that would not have AC power all the…

I have used an low-power ESP8266 together with a native drawing library for this use case. As getting the drawing perfect is quite cumbersome i have mocked the graphics library in javascript using the canvas api [1].

The syntax is so similar that you can mostly copy and paste the drawing code between js and the arduino project with only a few adjustments. This has the huge advantage that you can use modern JS dev tools including livereload to get the drawing right while still ending up with native code.

[1] https://www.godberit.de/2019/11/08/Mock-for-ESP8266-graphics...

Post reply on HN