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

embedded-hal-1.0
Chris 2018-05-11 15:28:31 +02:00
parent 954c5f862d
commit ba5d44a1d7
2 changed files with 3 additions and 4 deletions

View File

@ -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;

View File

@ -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();