nt35510 0.1.0

Trait-based NT35510 DSI LCD controller driver
Documentation
  • Coverage
  • 81.03%
    47 out of 58 items documented0 out of 11 items with examples
  • Size
  • Source code size: 15.22 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.76 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 15s Average build duration of successful builds.
  • all releases: 15s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Amperstrand/nt35510
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Amperstrand

nt35510

Standalone no_std NT35510 DSI LCD controller driver.

This crate is transport-agnostic and accepts any DSI host implementing embedded_display_controller::dsi::DsiHostCtrlIo.

Usage

use embedded_display_controller::dsi::DsiHostCtrlIo;
use embedded_hal::delay::DelayNs;
use nt35510::{ColorFormat, Mode, Nt35510, Nt35510Config};

fn init_display(dsi: &mut impl DsiHostCtrlIo, delay: &mut impl DelayNs) {
    let mut panel = Nt35510::new();
    let _ = panel.probe(dsi, delay);

    let config = Nt35510Config {
        mode: Mode::Portrait,
        color_format: ColorFormat::Rgb565,
        ..Nt35510Config::default()
    };
    panel.init_with_config(dsi, delay, config).unwrap();
}

Nt35510Config::default() matches STM32F469I-DISCO tested settings (portrait, RGB565, 480x800). Landscape mode is available but currently untested. init() and init_rgb565() remain convenience wrappers.