[][src]Module epd_waveshare_uart::epd4in3

A simple Driver for the Waveshare 4.3" E-Ink Display via SERIAL

Build with the help of documentation/code from Waveshare, Ben Krasnows partial Refresh tips and the driver documents in the pdfs-folder as orientation.

This driver was built using embedded-hal traits.

Requirements

SERIAL

  • 8 bits per word, MSB first
  • 1 bit stop
  • Max. Speed tested was 8Mhz but more should be possible

Other....

  • Buffersize: Wherever a buffer is used it always needs to be of the size: width / 8 * length, where width and length being either the full e-ink size, since it does not support partial update window size

Examples

This example is not tested
let mut epd4in3 = EPD4in3::new(serial, wake, rst, delay).unwrap();

let mut buffer =  [0u8, epd4in3.get_width() * epd4in3.get_height()];

// draw something into the buffer

epd4in3.update_frame(&mut serial, &display.buffer(), &mut delay)?;

epd4in3.display_frame(&mut serial)?;
 
// wait and look at the image

epd4in3.clear_frame(None);

epd4in3.sleep();

Modules

command

Structs

Display4in3

Full size buffer for use with the 4in3 EPD

EPD4in3

EPD4in3 driver

Constants

DEFAULT_BACKGROUND_COLOR
DEFAULT_FOREGROUND_COLOR
HEIGHT
WIDTH