pub struct MicrodotPHAT { /* private fields */ }Implementations§
Source§impl MicrodotPHAT
impl MicrodotPHAT
pub fn new<I2C, E>(i2c: &mut I2C) -> Result<Self, Error<E>>where
I2C: I2c<Error = E>,
pub fn clear<I2C, E>(&mut self, i2c: &mut I2C) -> Result<(), Error<E>>where
I2C: I2c<Error = E>,
pub fn set_pixel(&mut self, x: usize, y: usize, on: bool)
pub fn set_decimal(&mut self, idx: usize, on: bool)
pub fn show<I2C, E>(
&mut self,
i2c: &mut I2C,
rotate180: bool,
) -> Result<(), Error<E>>where
I2C: I2c<Error = E>,
pub fn set_brightness<I2C, E>(
&mut self,
i2c: &mut I2C,
brightness: f32,
) -> Result<(), Error<E>>where
I2C: I2c<Error = E>,
pub fn write_string(&mut self, s: &str) -> usize
Auto Trait Implementations§
impl Freeze for MicrodotPHAT
impl RefUnwindSafe for MicrodotPHAT
impl Send for MicrodotPHAT
impl Sync for MicrodotPHAT
impl Unpin for MicrodotPHAT
impl UnsafeUnpin for MicrodotPHAT
impl UnwindSafe for MicrodotPHAT
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more