Struct st7735_async_low::Commands[][src]

pub struct Commands<S> { /* fields omitted */ }

Commands of ST7735 in their original form, except that the parameters of each command are typed.

Implementations

impl<S: DcxPin> Commands<S>[src]

pub fn new(spi: S) -> Self[src]

Creates a new instance with an spi object.

impl<S> Commands<S> where
    S: DcxPin,
    S: WriteU8<'a> + WriteU8s<'a>, 
[src]

pub async fn caset(&mut self, begin: u16, end: u16)[src]

Sets the column address window as begin to end, both inclusive.

pub async fn raset(&mut self, begin: u16, end: u16)[src]

Sets the row address window as begin to end, both inclusive.

pub async fn ramwr(&mut self) -> RamWriter<'_, S>[src]

Starts writing memory. The returned object can be used to actually do the memory writing.

pub async fn rgbset(&mut self) -> RamWriter<'_, S>[src]

Starts writing the RGB lookup table (see the ST7735S datasheet sec 9.18).

The returned object can be used to actually do the memory writing. The user is expected to write exactly 128 bytes, which is not enforced by the library.

The lookup table is needed when the color mode (see colmod()) is not Colmod::R6G6B6.

pub async fn ptlar(&mut self, begin: u16, end: u16)[src]

Sets the partial area address window as begin to end, both inclusive.

pub async fn scrlar(&mut self, top: u16, visible: u16, bottom: u16)[src]

Sets the scroll area address windows.

pub async fn nop(&mut self)[src]

Does nothing.

pub async fn swreset(&mut self)[src]

Software-resets.

pub async fn slpin(&mut self)[src]

Enters the sleep mode.

pub async fn slpout(&mut self)[src]

Exits the sleep mode.

pub async fn ptlon(&mut self)[src]

Enters the partial mode.

pub async fn noron(&mut self)[src]

Enters the normal mode (i.e., exits the partial mode).

pub async fn invoff(&mut self)[src]

Disables the inversion mode.

pub async fn invon(&mut self)[src]

Enables the inversion mode.

pub async fn dispoff(&mut self)[src]

Turns the display/screen off.

pub async fn dispon(&mut self)[src]

Turns the display/screen on.

pub async fn teoff(&mut self)[src]

Turns the tear effect line off.

pub async fn teon(&mut self, te_mode: bool)[src]

Turns the tear effect line on with the given mode.

pub async fn madctl(&mut self, data: Madctl)[src]

Sets the MADCTL register.

pub async fn idmoff(&mut self)[src]

Turns the idle mode off, i.e., enables the full color mode.

pub async fn idmon(&mut self)[src]

Turns the idle mode on, i.e., enables the 8-color mode.

pub async fn colmod(&mut self, data: Colmod)[src]

Sets the color mode, i.e., how many bits of the R, G and B components have.

impl<S> Commands<S> where
    S: DcxPin,
    S: WriteU8<'a> + Read<'a>, 
[src]

pub async fn rddid(&mut self) -> [u8; 3][src]

Reads ID1, ID2 and ID3 of the screen with a single command.

pub async fn rdid1(&mut self) -> u8[src]

Reads ID1, i.e., the manufacturer ID. Unless reprogrammed, the value should be 0x7C (decimal 124).

pub async fn rdid2(&mut self) -> u8[src]

Reads ID2’ i.e., the LCD’s “module/driver version ID”. The highest bit is always 1.

pub async fn rdid3(&mut self) -> u8[src]

Reads ID3, i.e., the LCD’s “module/driver ID”.

Auto Trait Implementations

impl<S> Send for Commands<S> where
    S: Send

impl<S> Sync for Commands<S> where
    S: Sync

impl<S> Unpin for Commands<S> where
    S: Unpin

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.