Skip to content

Commit

Permalink
fix imports for updated depdencies
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy-gilligan authored and caemor committed Oct 30, 2024
1 parent 28bbb60 commit aa3442d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/epd2in13b_v4/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//! # Example for the 2.13" B V4 E-Ink Display
//!
//!```rust, no_run
//!# use embedded_hal_mock::*;
//!# use embedded_hal_mock::eh1::*;
//!# fn main() -> Result<(), MockError> {
//!use embedded_graphics::{prelude::*, primitives::{Line, PrimitiveStyle, PrimitiveStyleBuilder}};
//!use epd_waveshare::{epd2in13b_v4::*, prelude::*};
Expand All @@ -17,10 +17,10 @@
//!# let busy_in = pin::Mock::new(&expectations);
//!# let dc = pin::Mock::new(&expectations);
//!# let rst = pin::Mock::new(&expectations);
//!# let mut delay = delay::MockNoop::new();
//!# let mut delay = delay::NoopDelay::new();
//!
//!// Setup EPD
//!let mut epd = Epd2in13b::new(&mut spi, cs_pin, busy_in, dc, rst, &mut delay, None)?;
//!let mut epd = Epd2in13b::new(&mut spi, busy_in, dc, rst, &mut delay, None).unwrap();
//!
//!// Use display graphics from embedded-graphics
//!// This display is for the black/white/chromatic pixels
Expand All @@ -42,11 +42,11 @@
//! &mut delay,
//! &tricolor_display.bw_buffer(),
//! &tricolor_display.chromatic_buffer()
//!)?;
//!epd.display_frame(&mut spi, &mut delay)?;
//!).unwrap();
//!epd.display_frame(&mut spi, &mut delay).unwrap();
//!
//!// Set the EPD to sleep
//!epd.sleep(&mut spi, &mut delay)?;
//!epd.sleep(&mut spi, &mut delay).unwrap();
//!# Ok(())
//!# }
//!```
Expand Down

0 comments on commit aa3442d

Please sign in to comment.