Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pHat/wHat discovery #18

Closed
danieldulaney opened this issue Oct 31, 2020 · 2 comments
Closed

Add pHat/wHat discovery #18

danieldulaney opened this issue Oct 31, 2020 · 2 comments

Comments

@danieldulaney
Copy link

danieldulaney commented Oct 31, 2020

In addition to the SPI interface, the Inky pHat and wHat boards also implement a mostly-undocumented I2C interface that allows the contents of the EEPROM to be dumped, which allows the boards to be identified (resolution, available colors, board revision, etc.). This is how the Inky Python library does board detection.

I have some working Rust code that uses the embedded_hal I2C interfaces to do autodetection. Would there be interest in a PR adding those capabilities to this crate? I know it's slightly outside the SSD1675 chip in particular, but it doesn't require any new dependencies and would better support Inky [pw]Hat users.

If not, I'll most likely post a new crate with just that detection subsystem.

@wezm
Copy link
Owner

wezm commented Nov 1, 2020

That sounds useful in principle. I would ideally like to split out the Inky specific parts into a separate crate so that there can be a core ssd167x crate that is not Inky specific. It's been on my todo list for a long time but I've still not got around to it. I still hope to get there eventually. Maybe the best option for now is for you to publish a separate crate. I'd be open to giving it a mention in the README of this one.

@danieldulaney
Copy link
Author

Makes sense! I'll shift discussion over to #19.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants