Improved Documentation

This commit is contained in:
Chris
2018-10-23 16:41:59 +02:00
parent e51406b05f
commit 3fc25d71e5
5 changed files with 38 additions and 13 deletions
+4
View File
@@ -1,5 +1,9 @@
use epd2in9::{DEFAULT_BACKGROUND_COLOR, WIDTH, HEIGHT};
/// Full size buffer for use with the 2in9 EPD
///
/// Can also be manuall constructed:
/// `buffer: [DEFAULT_BACKGROUND_COLOR.get_byte_value(); WIDTH / 8 * HEIGHT]`
pub struct Buffer2in9 {
pub buffer: [u8; WIDTH as usize * HEIGHT as usize / 8],
}