Skip to content

ili9342c::color

RGB565 color helpers. Pixels are plain u16 on this driver’s surface (so a blit buffer is a &[u16] with no conversion), and this module builds them.

const fn rgb565(r: u8, g: u8, b: u8) -> u16

Pack 8-bit r/g/b into RGB565.

const BLACK: u16;
const BLUE: u16;
const CYAN: u16;
const GREEN: u16;
const MAGENTA: u16;
const ORANGE: u16;
const RED: u16;
const WHITE: u16;
const YELLOW: u16;