wezm / ssd1675

Rust driver for SSD1675 e-Paper display controller
Apache License 2.0
62 stars 14 forks source link

Split out Inky specific functionality #19

Open wezm opened 3 years ago

wezm commented 3 years ago

This crate was originally built as part of my e-Paper conference badge project, which used an Inky pHat display. As a result there are some Inky pHat specific things in the code. Additionally it appears that the SSD1619 controller (used in the Inky wHat) is very similar to the SSD1675, but supports more rows and columns.

I would like to:

danieldulaney commented 3 years ago

One thing that might be a good design goal for an Inky-specific crate would be to provide pre-configured LUTs and pins for the common use-case of sticking a board on top of a Raspberry Pi (or other common configurations if they come up). That would make it substantially easier to just pick up and go, but with this crate still available if there are uncommon use-cases that come up (e.g. #8).

danieldulaney commented 3 years ago

Also, to add to the list: newer revisions of the Inky pHat also use the SSD1608 controller, which is related but requires a slightly different setup sequence, as well as some logic to offset the visual pixels to the logical pixels (visual (0, 0) is at approx. logical (6, 0)).

Additionally, there are a bunch of different boards based on the SSD16xx family, including from Adafruit, whose library supports a half-dozen different displays.

I guess one question is how far this crate should be willing to go to support different displays (especially if they're driven by different chips), as opposed to supporting a specific subset of chips and leaving the rest to other crates.

If there's interest, I have an SSD1608-based pHat to test with, so I can start putting together support for it.

JeanBlignaut commented 2 years ago

Suggestion: How about making this crate display agnostic, or configurable for different displays, but leave the other chip versions for a different crate - mainly due to the fact that this crate is named SSD1675..?

wezm commented 2 years ago

Yes that probably a good idea. As evidenced from the age of this issue it's unlikely that I'll be able to get to it any time soon though.