-
Notifications
You must be signed in to change notification settings - Fork 59
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 physical connection type to Interface trait #167
Comments
How do you propose to model this? A "typeflag" const added to the |
I hadn't really thought about the details of the implementation when I opened the issue. But I think adding a const to the trait Interface {
const KIND: InterfaceKind;
...
}
#[non_exhaustive]
enum InterfaceKind {
Spi,
Parallel8080,
} The check for valid configuration would then be performed by the |
This has been implemented in #169. |
Some display controllers support different color depth with different connection types. The ILI9488, for example, supports different color depth for SPI and parallel connections.
We've never been able to detect if the combination between physical connection and chosen color depth is valid. But now that we no longer depend on
display-interface
we could add additional meta information to theInterface
trait to detect these kinds of configuration errors and alert the user about them.The text was updated successfully, but these errors were encountered: