ab1024-ega 0.3.0

An embedded-hal SPI driver for AB1024-EGA/AC057TC1 (as used in Inkplate 6 COLOR)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use num_enum::{IntoPrimitive, TryFromPrimitive};

#[derive(IntoPrimitive, PartialEq, Copy, Clone, TryFromPrimitive)]
#[repr(u8)]
pub enum Color {
    BLACK = 0b0000_0000,
    WHITE = 0b0000_0001,
    GREEN = 0b0000_0010,
    BLUE = 0b0000_0011,
    RED = 0b0000_0100,
    YELLOW = 0b0000_0101,
    ORANGE = 0b0000_0110,
}