Expand description
IL0373 ePaper Display Driver
For a complete example see the nucleo-f103rb example.
Usage
To control a display you will need:
- An Interface to the controller
- A display configuration
- A Display
The Interface captures the details of the hardware connection to the IL0373 controller. This includes an SPI device and some GPIO pins. The IL0373 can control many different displays that vary in dimensions, rotation, and driving characteristics. The Config captures these details. To aid in constructing the Config there is a Builder interface. Finally when you have an interface and a Config a Display instance can be created.
Optionally the Display can be promoted to a GraphicDisplay, which allows it to use the functionality from the embedded-graphics crate. The plain display only provides the ability to update the display by passing black/white and red buffers.
This driver can work with an SRAM device, to store the display
buffer on that device, to reduce the memory footprint on the
MCU. The SRAM device must be on the the same SPI port as the
il0373. For this option, use the feature sram
. Instead of using
a Interface and GraphicDisplay, use a SpiBus, and an
associated SramDisplayInterface, then a SramGraphicDisplay.
To update the display you will typically follow this flow:
Re-exports
pub use config::Builder;
pub use display::Dimensions;
pub use display::Display;
pub use display::Rotation;
pub use graphics::GraphicDisplay;
pub use interface::DisplayInterface;
pub use interface::Interface;
Modules
Enums
- Represents the state of a pixel in the display