use avr_oxide::hal::generic::twi::TwiAddr;
use avrox_display::drivers::solomon;
use avrox_display::drivers::solomon::{PixelByteOrder, StartLineCmdType};
use avrox_display::gfx::pixels::Grey;
pub struct Greyscale128x128DriverConfig;
pub type AdafruitGreyscale128x128<CLIENT> =
solomon::SolomonDisplay<Greyscale128x128DriverConfig,CLIENT, Grey>;
impl solomon::GenericConfig for Greyscale128x128DriverConfig {
const CP_VOLTAGE: u8 = solomon::CP_6V;
const COL_ORDER: u8 = solomon::COL_RIGHTTOLEFT;
const SEG_ORDER: u8 = solomon::SEG_SEG0COL127;
const MPLEX_RATIO: u8 = 0x7f;
const WIDTH: usize = 128;
const HEIGHT: usize = 128;
const PIXEL_ORDER: PixelByteOrder = PixelByteOrder::LsbLeft;
const DEFAULT_I2C: TwiAddr = TwiAddr::addr_7bit(0x3D);
const STARTLINE_CMD_TYPE: StartLineCmdType = StartLineCmdType::DoubleByteA1;
const RESET_CMD: &'static [u8] = &[
0x00u8,
0xFD, 0x12, 0xA8, Self::MPLEX_RATIO,
0xA0, 0b01010011,
0xAB, 0x01, 0xB6, 0x04, 0xBE, 0x0F, 0xBC, 0x08, 0xD5, 0x62, 0xB1, 0x11, 0xA2, 0x00, 0xB3, 0x00, 0xA4, ];
const SET_PAGE_COL_CMD: u8 = 0x15;
const SET_PAGE_ROW_CMD: u8 = 0x75;
const RAMWIDTH_BYTES: usize = 64;
const RAMHEIGHT_BYTES: usize = 16;
}