[−][src]Struct st7735_lcd::ST7735
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]
SPI: Write<u8>,
DC: OutputPin,
RST: OutputPin,
TIMER: CountDown + Periodic,
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]
spi: SPI,
dc: DC,
rst: RST,
timer: TIMER,
rgb: bool,
inverted: bool
) -> Self where
SPI: Write<u8>,
DC: OutputPin,
RST: OutputPin,
TIMER: CountDown + Periodic,
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]
SPI: Write<u8>,
DC: OutputPin,
RST: OutputPin,
TIMER: CountDown + Periodic,
fn draw<T>(&mut self, item_pixels: T) where
T: Iterator<Item = Pixel<PixelColorU16>>,
[src]
T: Iterator<Item = Pixel<PixelColorU16>>,
Auto Trait Implementations
impl<SPI, DC, RST, TIMER> Send for ST7735<SPI, DC, RST, TIMER> where
DC: Send,
RST: Send,
SPI: Send,
TIMER: Send,
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,
DC: Sync,
RST: Sync,
SPI: Sync,
TIMER: Sync,
Blanket Implementations
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,