#[non_exhaustive]pub enum ConfigurationError {
UnsupportedInterface,
InvalidDisplaySize,
InvalidDisplayOffset,
}
Expand description
Specifics of InitError::InvalidConfiguration if configuration was found invalid
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UnsupportedInterface
Unsupported interface kind.
The chosen interface isn’t supported by the selected model. Note that
some controller models don’t support all combinations of physical
interface and color formats. To resolve this, try to use another color
format if available (e.g. ILI9486Rgb666
instead of
ILI9486Rgb565
if you use a SPI connection)
InvalidDisplaySize
Invalid display size
Display dimensions provided in Builder::display_size were invalid, e.g. width or height of 0
InvalidDisplayOffset
Invalid display offset.
The active display area, defined by display_size
and
display_offset
, extends beyond the boundaries of
the controller’s framebuffer. To resolve this, reduce the offset to a maximum value of
FRAMEBUFFER_SIZE
minus display_size
.