Skip to main content

DisplayController

Trait DisplayController 

Source
pub trait DisplayController {
    // Required methods
    fn init(&mut self, config: DisplayConfiguration);
    fn clock(&self) -> u32;
}
Expand description

A microcontroller peripheral that drives a LCD-TFT display

Required Methods§

Source

fn init(&mut self, config: DisplayConfiguration)

Initialize the controller with a given configuration

Source

fn clock(&self) -> u32

Returns the clock frequency (Hz) of the controller

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§