LCD1602

Struct LCD1602 

Source
pub struct LCD1602<EN, RS, D4, D5, D6, D7, Timer> { /* private fields */ }

Implementations§

Source§

impl<EN, RS, D4, D5, D6, D7, Timer, E> LCD1602<EN, RS, D4, D5, D6, D7, Timer>
where EN: OutputPin<Error = E>, RS: OutputPin<Error = E>, D4: OutputPin<Error = E>, D5: OutputPin<Error = E>, D6: OutputPin<Error = E>, D7: OutputPin<Error = E>, Timer: CountDown<Time = Duration>,

Source

pub fn new( en: EN, rs: RS, d4: D4, d5: D5, d6: D6, d7: D7, timer: Timer, ) -> Result<LCD1602<EN, RS, D4, D5, D6, D7, Timer>, Error<E>>

Source

pub fn set_bus_width(&mut self, bus_width: BusWidth) -> Result<(), Error<E>>

Source

pub fn set_entry_mode( &mut self, text_direction: Direction, screen_edge_tracking: bool, ) -> Result<(), Error<E>>

Source

pub fn clear(&mut self) -> Result<(), Error<E>>

Source

pub fn home(&mut self) -> Result<(), Error<E>>

Source

pub fn print(&mut self, s: &str) -> Result<(), Error<E>>

Source

pub fn delay(&mut self, interval_us: u64) -> Result<(), Error<E>>

Auto Trait Implementations§

§

impl<EN, RS, D4, D5, D6, D7, Timer> Freeze for LCD1602<EN, RS, D4, D5, D6, D7, Timer>
where EN: Freeze, RS: Freeze, D4: Freeze, D5: Freeze, D6: Freeze, D7: Freeze, Timer: Freeze,

§

impl<EN, RS, D4, D5, D6, D7, Timer> RefUnwindSafe for LCD1602<EN, RS, D4, D5, D6, D7, Timer>

§

impl<EN, RS, D4, D5, D6, D7, Timer> Send for LCD1602<EN, RS, D4, D5, D6, D7, Timer>
where EN: Send, RS: Send, D4: Send, D5: Send, D6: Send, D7: Send, Timer: Send,

§

impl<EN, RS, D4, D5, D6, D7, Timer> Sync for LCD1602<EN, RS, D4, D5, D6, D7, Timer>
where EN: Sync, RS: Sync, D4: Sync, D5: Sync, D6: Sync, D7: Sync, Timer: Sync,

§

impl<EN, RS, D4, D5, D6, D7, Timer> Unpin for LCD1602<EN, RS, D4, D5, D6, D7, Timer>
where EN: Unpin, RS: Unpin, D4: Unpin, D5: Unpin, D6: Unpin, D7: Unpin, Timer: Unpin,

§

impl<EN, RS, D4, D5, D6, D7, Timer> UnwindSafe for LCD1602<EN, RS, D4, D5, D6, D7, Timer>
where EN: UnwindSafe, RS: UnwindSafe, D4: UnwindSafe, D5: UnwindSafe, D6: UnwindSafe, D7: UnwindSafe, Timer: 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.