Trait st7735_async_low::spi::WriteU8[][src]

pub trait WriteU8<'a> {
    type WriteU8Done: 'a + Future<Output = ()>;
    fn write_u8(&'a mut self, data: u8) -> Self::WriteU8Done;
}

Defines how a single u8 is written with the SCK and SDA pins.

Common MCUs’ SPI peripheral can be used, with CPOL=1, CPHA=1 and MSB-first. Notice the timing requirement from ST7735’s datasheet. Most important ones:

  • SCK low duration and high durations are at least 15ns long.
  • SCK period is at least 66ns long.

Associated Types

type WriteU8Done: 'a + Future<Output = ()>[src]

Loading content...

Required methods

fn write_u8(&'a mut self, data: u8) -> Self::WriteU8Done[src]

Loading content...

Implementors

impl<'a, 's, S: DcxPin + WriteU8<'a>> WriteU8<'a> for RamWriter<'s, S>[src]

type WriteU8Done = <S as WriteU8<'a>>::WriteU8Done

impl<'a, W: WriteU8<'a>> WriteU8<'a> for AdapterU8<W>[src]

type WriteU8Done = <W as WriteU8<'a>>::WriteU8Done

impl<'a, W: WriteU8s<'a>> WriteU8<'a> for AdapterU8s<W>[src]

type WriteU8Done = <W as WriteU8s<'a>>::WriteU8sDone

Loading content...