Function epd_waveshare::buffer_len[][src]

pub const fn buffer_len(width: usize, height: usize) -> usize
Expand description

Computes the needed buffer length. Takes care of rounding up in case width is not divisible by 8.

unused bits width <––><————————> [XXXXX210][76543210]…[76543210] ^ [XXXXX210][76543210]…[76543210] | height [XXXXX210][76543210]…[76543210] v