Enum st7735_async_low::Colmod[][src]

pub enum Colmod {
    R4G4B4,
    R5G6B5,
    R6G6B6,
    Unknown,
}

Color mode (the bit widths of the R, G and B components of a pixel).

The native format is 6-bit for each component. When another (smaller) mode is used, the LCD will internally translate each component into the 6-bit format with a lookup table. See Sec 9.18 “Color Depth Conversion Look Up Tables” of the ST7735S datasheet for the lookup table (LUT).

Variants

R4G4B4

Each component has 4 bits. LUT will be used.

R5G6B5

Red has 5 bits; green has 6 bits; blue has 5 bits. LUT will be used.

R6G6B6

Each compoment has 6 bits. This is the native format; LUT will not be used.

Unknown

No idea when this value can be used.

Trait Implementations

impl Clone for Colmod[src]

impl Copy for Colmod[src]

impl Debug for Colmod[src]

impl Default for Colmod[src]

impl Display for Colmod[src]

impl From<u8> for Colmod[src]

Auto Trait Implementations

impl Send for Colmod

impl Sync for Colmod

impl Unpin for Colmod

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.