MCPcopy Create free account
hub / github.com/cbm80amiga/Arduino_ST7789_Fast / init

Method init

Arduino_ST7789_Fast.cpp:225–242  ·  view source on GitHub ↗

----------------------------------------------------------

Source from the content-addressed store, hash-verified

223
224// ----------------------------------------------------------
225void Arduino_ST7789::init(uint16_t width, uint16_t height)
226{
227 commonST7789Init(NULL);
228
229 if(width==240 && height==240) {
230 _colstart = 0;
231 _rowstart = 80;
232 } else {
233 _colstart = 0;
234 _rowstart = 0;
235 }
236 _ystart = _xstart = 0;
237 _width = width;
238 _height = height;
239
240 displayInit(init_240x240);
241 setRotation(2);
242}
243
244// ----------------------------------------------------------
245void Arduino_ST7789::writeCmd(uint8_t c)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected