Pcd8544Spi

Struct Pcd8544Spi 

Source
pub struct Pcd8544Spi<SPI, DC, CS> { /* private fields */ }

Implementations§

Source§

impl<SPI, DC, CS> Pcd8544Spi<SPI, DC, CS>
where SPI: SpiBus, DC: OutputPin, CS: OutputPin,

Source

pub fn new<T: OutputPin, R: DelayNs>( spi: SPI, dc: DC, cs: CS, rst: Option<&mut T>, delay: &mut R, ) -> Pcd8544Spi<SPI, DC, CS>

Trait Implementations§

Source§

impl<SPI, DC, CS> Pcd8544 for Pcd8544Spi<SPI, DC, CS>
where SPI: SpiBus, DC: OutputPin, CS: OutputPin,

Source§

fn command(&mut self, cmd: u8)

Source§

fn data(&mut self, data: &[u8])

Source§

fn init(&mut self)

Source§

fn print_char(&mut self, c: u8)

Source§

fn print(&mut self, s: &str)

Source§

fn set_position(&mut self, x: u8, y: u8)

Source§

fn draw_buffer(&mut self, buffer: &[u8; 504])

Source§

fn clear(&mut self)

Auto Trait Implementations§

§

impl<SPI, DC, CS> Freeze for Pcd8544Spi<SPI, DC, CS>
where SPI: Freeze, DC: Freeze, CS: Freeze,

§

impl<SPI, DC, CS> RefUnwindSafe for Pcd8544Spi<SPI, DC, CS>

§

impl<SPI, DC, CS> Send for Pcd8544Spi<SPI, DC, CS>
where SPI: Send, DC: Send, CS: Send,

§

impl<SPI, DC, CS> Sync for Pcd8544Spi<SPI, DC, CS>
where SPI: Sync, DC: Sync, CS: Sync,

§

impl<SPI, DC, CS> Unpin for Pcd8544Spi<SPI, DC, CS>
where SPI: Unpin, DC: Unpin, CS: Unpin,

§

impl<SPI, DC, CS> UnwindSafe for Pcd8544Spi<SPI, DC, CS>
where SPI: UnwindSafe, DC: UnwindSafe, CS: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.