1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//! SSD1680 ePaper Display Driver
//!
//! Used in the [WeAct 2.13" Tri-Color display](https://www.aliexpress.com/item/1005004644515880.html)
//!
//! For a complete example see [the example](https://github.com/mbv/esp32-ssd1680/blob/main/src/main.rs).
//!
//! This driver is losely modeled after the
//! [epd-waveshare](https://github.com/caemor/epd-waveshare) drivers but built for my needs.
//!
//!
//! ### Usage
//! This driver does not hide that you're working with one buffer for black/white and one for red. To
//! display something you:
//!
//! 1. first create a buffer (either b/w or red) and draw things onto it, preferably
//! with [`embedded_graphics`](https://github.com/jamwaffles/embedded-graphics).
//! 1. then send the frame to the display driver using [`driver::Ssd1680::update_bw_frame`] or
//! [`driver::Ssd1680::update_red_frame`]
//! 1. then kick off a display update using [`driver::Ssd1680::display_frame`]
//!
//!
/// Maximum display height this driver supports
pub const MAX_HEIGHT: u16 = 296;
/// Maximum display width this driver supports
pub const MAX_WIDTH: u16 = 176;
/// Display height
pub const HEIGHT: u8 = 250;
/// Display width
pub const WIDTH: u8 = 122;
/// Useful exports