News for hackers. Stuff that matters.
Re:Show HN: FrameOS – operating system for single function s... by omtinez on Wednesday January 03, 2024 @03:58PM (#38859812)
What hardware are you using? I recently finished a project myself and I'd like to do more with e-ink but the hardware "driver" that plugs into the pi costs as much as the e-ink display.
Re:Show HN: FrameOS – operating system for single function s... by malcolmosh on Wednesday January 03, 2024 @04:06PM (#38859918)
Yes, it can get pricey. I'm using a Raspberry Pi Zero W with a Waveshare 7.5 e-ink panel, which came with its own raspberry Pi driver. I also added a PiSugar2 battery. Waveshare seemed to be the most affordable option out there.

I find the costs to be reasonable, but I just bought a Waveshare e-ink ESP32 controller to try boosting battery life, since I don't need a fully fledged OS. All I'm doing on the frame is pulling an image from an URL or displaying a local image if the connection fails.

Re:Show HN: FrameOS – operating system for single function s... by gadgetoid on Wednesday January 03, 2024 @04:36PM (#38860266)
This sounds like it could port well to an RP2040-based display. Though I am forever battling against its very constrained RAM for network stuff (not helped by MicroPython needing a chunk for buffers, an GC bitmap for mark/sweep and some other network mystery meat). That said our (Pimoroni) larger Pico W-based Inky has an 8Mbit PSRAM to act as a back buffer for the display. It’s “slow” but when updates take 30s+ anyway that’s kind of redundant. Very little of that 8Mbit is actually used, so with a little tinkering it might be able to cache multiple images for sequential display without having to faff about with SD cards.

Currently I transmute some images (XKCD and NASA APOD) via a scheduled GitHub action into something fit for the various display sizes. An even more extreme approach would be to convert into the packed (4bpp for 7-colour E-ink) framebuffer format server-side. Less network efficient, but more predictable memory usage.

We’ve had JPEG support for a while, but I brought up a PNG decoder (Larry Bank’s PNGdec) recently(ish) and it’s a much better fit than JPEG for palette-based images. It uses a 32K sliding window, however, which can get spicy if you’re not careful.

Re:Show HN: FrameOS – operating system for single function s... by malcolmosh on Thursday January 04, 2024 @12:11PM (#38869518)
Thanks for the detailed reply, I'll look into all of this! Very interesting.
Re:Show HN: FrameOS – operating system for single function s... by niutech on Sunday January 07, 2024 @05:08AM (#38899979)
LilyGo T5 is a very cheap e-paper and also based on ESP32.