Browse Source

fixed documentation tests by ignoring them as they are just examples not build for running

embedded-hal-1.0
Chris 8 years ago
parent
commit
ba5d44a1d7
  1. 5
      src/epd4in2/mod.rs
  2. 2
      src/lib.rs

5
src/epd4in2/mod.rs

@ -26,7 +26,7 @@
//! //!
//! # Examples //! # Examples
//! //!
//! ``` //! ```ignore
//! let mut epd4in2 = EPD4in2::new(spi, cs, busy, dc, rst, delay).unwrap(); //! let mut epd4in2 = EPD4in2::new(spi, cs, busy, dc, rst, delay).unwrap();
//! //!
//! let mut buffer = [0u8, epd4in2.get_width() / 8 * epd4in2.get_height()]; //! let mut buffer = [0u8, epd4in2.get_width() / 8 * epd4in2.get_height()];
@ -128,7 +128,7 @@ where
/// ///
/// # Example /// # Example
/// ///
/// ``` /// ```ignore
/// //buffer = some image data; /// //buffer = some image data;
/// ///
/// let mut epd4in2 = EPD4in2::new(spi, cs, busy, dc, rst, delay); /// let mut epd4in2 = EPD4in2::new(spi, cs, busy, dc, rst, delay);
@ -137,7 +137,6 @@ where
/// ///
/// epd4in2.sleep(); /// epd4in2.sleep();
/// ``` /// ```
/// testlajfafe
pub fn new(spi: SPI, cs: CS, busy: BUSY, dc: DC, rst: RST, delay: D) -> Result<Self, E> { pub fn new(spi: SPI, cs: CS, busy: BUSY, dc: DC, rst: RST, delay: D) -> Result<Self, E> {
//TODO: width und height anpassbar machen? //TODO: width und height anpassbar machen?
let width = 400; let width = 400;

2
src/lib.rs

@ -26,7 +26,7 @@
//! //!
//! # Examples //! # Examples
//! //!
//! ``` //! ```ignore
//! use eink-waveshare-rs::epd4in2::EPD4in2; //! use eink-waveshare-rs::epd4in2::EPD4in2;
//! //!
//! let mut epd4in2 = EPD4in2::new(spi, cs, busy, dc, rst, delay).unwrap(); //! let mut epd4in2 = EPD4in2::new(spi, cs, busy, dc, rst, delay).unwrap();

Loading…
Cancel
Save