[][src]Struct st7735_lcd::ST7735

pub struct ST7735<SPI, DC, RST, TIMER> where
    SPI: Write<u8>,
    DC: OutputPin,
    RST: OutputPin,
    TIMER: CountDown + Periodic
{ /* fields omitted */ }

ST7735 driver to connect to TFT displays.

Methods

impl<SPI, DC, RST, TIMER> ST7735<SPI, DC, RST, TIMER> where
    SPI: Write<u8>,
    DC: OutputPin,
    RST: OutputPin,
    TIMER: CountDown + Periodic
[src]

pub fn new(
    spi: SPI,
    dc: DC,
    rst: RST,
    timer: TIMER,
    rgb: bool,
    inverted: bool
) -> Self where
    SPI: Write<u8>,
    DC: OutputPin,
    RST: OutputPin,
    TIMER: CountDown + Periodic
[src]

Creates a new driver instance that uses hardware SPI.

pub fn init(&mut self) -> Result<(), ()>[src]

Runs commands to initialize the display.

pub fn hard_reset(&mut self)[src]

pub fn set_orientation(&mut self, orientation: &Orientation) -> Result<(), ()>[src]

pub fn set_pixel(&mut self, x: u16, y: u16, color: u16) -> Result<(), ()>[src]

Trait Implementations

impl<SPI, DC, RST, TIMER> Drawing<PixelColorU16> for ST7735<SPI, DC, RST, TIMER> where
    SPI: Write<u8>,
    DC: OutputPin,
    RST: OutputPin,
    TIMER: CountDown + Periodic
[src]

Auto Trait Implementations

impl<SPI, DC, RST, TIMER> Send for ST7735<SPI, DC, RST, TIMER> where
    DC: Send,
    RST: Send,
    SPI: Send,
    TIMER: Send

impl<SPI, DC, RST, TIMER> Sync for ST7735<SPI, DC, RST, TIMER> where
    DC: Sync,
    RST: Sync,
    SPI: Sync,
    TIMER: Sync

Blanket Implementations

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> Into<U> for T where
    U: From<T>, 
[src]

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

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.

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

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

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