[][src]Enum nanohat_oled::Command

pub enum Command {
    SetContrast,
    ContentFollowsRam,
    EntireDisplayOn,
    SetAddressingMode,
    DisplayOff,
    DisplayOn,
    NormalDisplay,
    InverseDisplay,
}

A command that can be sent to the OLED display

Variants

SetContrast

Sets contrast level of display, with higher number meaning higher contrast. Default is 0x7f.

ContentFollowsRam

Display is based on contents of graphics RAM. (default)

EntireDisplayOn

Display is all on, regardless of RAM contents.

SetAddressingMode

Sets the addressing mode to one of the AddressingMode values.

DisplayOff

Turns off the display, aka sleep mode. (default)

DisplayOn

Turns on the display

NormalDisplay

Display is white on black, ie a 1 denotes white, 0 denotes black. (default)

InverseDisplay

Display is black on white, ie a 1 denotes black, 0 denotes white.

Trait Implementations

impl Into<u8> for Command
[src]

Auto Trait Implementations

impl Send for Command

impl Sync for Command

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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