#graphics #display #embedded

no-std display-interface

Traits for interfaces used to drive displays

8 releases (4 breaking)

0.5.0 Jan 12, 2024
0.4.1 May 10, 2021
0.4.0 May 24, 2020
0.3.0 May 10, 2020
0.1.1 Mar 29, 2020

#42 in No standard library

Download history 3077/week @ 2023-11-09 3407/week @ 2023-11-16 2899/week @ 2023-11-23 3400/week @ 2023-11-30 3329/week @ 2023-12-07 3255/week @ 2023-12-14 2180/week @ 2023-12-21 3732/week @ 2023-12-28 5106/week @ 2024-01-04 3949/week @ 2024-01-11 3615/week @ 2024-01-18 5489/week @ 2024-01-25 3123/week @ 2024-02-01 7491/week @ 2024-02-08 4579/week @ 2024-02-15 4116/week @ 2024-02-22

20,680 downloads per month
Used in 58 crates (32 directly)

MIT/Apache

9KB

Display interface

This Rust crate contains a no_std compatible interface in form of traits to bridge between a bus driver and a display driver. The goal here is to allow display drivers to be written in a hardware interface agnostic way and prevent code duplication and missing implementations.

Crate features

Additional features can be enabled by adding the following features to your Cargo.toml.

  • defmt-03: implements defmt::Format for DisplayError.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


lib.rs:

A generic display interface

This crate contains an error type and traits to implement for bus interface drivers drivers to be consumed by display drivers. It abstracts over the different communication methods available to drive a display and allows a driver writer to focus on driving the display itself and only have to implement a single interface.

Dependencies

~165KB