26 static const uint16_t
WIDTH = 1448;
45 void init(uint32_t serial_diag_bitrate = 0);
46 void init(uint32_t serial_diag_bitrate,
bool initial, uint16_t reset_duration = 20,
bool pulldown_rst_mode =
false);
51 void writeImage(
const uint8_t bitmap[], int16_t x, int16_t y, int16_t w, int16_t h,
bool invert =
false,
bool mirror_y =
false,
bool pgm =
false);
52 void writeImagePart(
const uint8_t bitmap[], int16_t x_part, int16_t y_part, int16_t w_bitmap, int16_t h_bitmap,
53 int16_t x, int16_t y, int16_t w, int16_t h,
bool invert =
false,
bool mirror_y =
false,
bool pgm =
false);
54 void writeImage(
const uint8_t* black,
const uint8_t* color, int16_t x, int16_t y, int16_t w, int16_t h,
bool invert =
false,
bool mirror_y =
false,
bool pgm =
false);
55 void writeImagePart(
const uint8_t* black,
const uint8_t* color, int16_t x_part, int16_t y_part, int16_t w_bitmap, int16_t h_bitmap,
56 int16_t x, int16_t y, int16_t w, int16_t h,
bool invert =
false,
bool mirror_y =
false,
bool pgm =
false);
58 void writeNative(
const uint8_t* data1,
const uint8_t* data2, int16_t x, int16_t y, int16_t w, int16_t h,
bool invert =
false,
bool mirror_y =
false,
bool pgm =
false);
60 void drawImage(
const uint8_t bitmap[], int16_t x, int16_t y, int16_t w, int16_t h,
bool invert =
false,
bool mirror_y =
false,
bool pgm =
false);
61 void drawImagePart(
const uint8_t bitmap[], int16_t x_part, int16_t y_part, int16_t w_bitmap, int16_t h_bitmap,
62 int16_t x, int16_t y, int16_t w, int16_t h,
bool invert =
false,
bool mirror_y =
false,
bool pgm =
false);
63 void drawImage(
const uint8_t* black,
const uint8_t* color, int16_t x, int16_t y, int16_t w, int16_t h,
bool invert =
false,
bool mirror_y =
false,
bool pgm =
false);
64 void drawImagePart(
const uint8_t* black,
const uint8_t* color, int16_t x_part, int16_t y_part, int16_t w_bitmap, int16_t h_bitmap,
65 int16_t x, int16_t y, int16_t w, int16_t h,
bool invert =
false,
bool mirror_y =
false,
bool pgm =
false);
67 void drawNative(
const uint8_t* data1,
const uint8_t* data2, int16_t x, int16_t y, int16_t w, int16_t h,
bool invert =
false,
bool mirror_y =
false,
bool pgm =
false);
68 void refresh(
bool partial_update_mode =
false);
69 void refresh(int16_t x, int16_t y, int16_t w, int16_t h);
73 struct IT8951DevInfoStruct
77 uint16_t usImgBufAddrL;
78 uint16_t usImgBufAddrH;
79 uint16_t usFWVersion[8];
80 uint16_t usLUTVersion[8];
82 IT8951DevInfoStruct IT8951DevInfo;
83 SPISettings _spi_settings;
84 SPISettings _spi_settings_for_read;
86 void _writeScreenBuffer(uint8_t value);
87 void _refresh(int16_t x, int16_t y, int16_t w, int16_t h,
bool partial_update_mode);
88 void _send8pixel(uint8_t data);
89 void _setPartialRamArea(uint16_t x, uint16_t y, uint16_t w, uint16_t h);
96 void _waitWhileBusy2(
const char* comment = 0, uint16_t busy_time = 5000);
97 uint16_t _transfer16(uint16_t value);
98 void _writeCommand16(uint16_t c);
99 void _writeData16(uint16_t d);
100 void _writeData16(
const uint16_t* d, uint32_t n);
101 uint16_t _readData16();
102 void _readData16(uint16_t* d, uint32_t n);
103 void _writeCommandData16(uint16_t c,
const uint16_t* d, uint16_t n);
104 void _IT8951SystemRun();
105 void _IT8951StandBy();
107 uint16_t _IT8951ReadReg(uint16_t usRegAddr);
108 void _IT8951WriteReg(uint16_t usRegAddr, uint16_t usValue);
109 uint16_t _IT8951GetVCOM(
void);
110 void _IT8951SetVCOM(uint16_t vcom);