22 void oledc_copy(
int x0,
int y0,
int w,
int h,
int x2,
int y2)
24 while(oledc_screenLock());
25 oledc_screenLockSet();
33 if (x0 >= _width || y0 >= _height || x1 < 0 || y1 < 0 || w <= 0 || h <= 0 ||
34 x2 >= _width || y2 >= _height || x3 < 0 || y3 < 0)
36 oledc_screenLockClr();
80 switch (TFTROTATION) {
86 x0 = TFTWIDTH - x0 - 1;
87 x1 = TFTWIDTH - x1 - 1;
88 x2 = TFTWIDTH - x2 - 1;
89 x3 = TFTWIDTH - x3 - 1;
92 x0 = TFTWIDTH - x0 - 1;
93 y0 = TFTHEIGHT - y0 - 1;
94 x1 = TFTWIDTH - x1 - 1;
95 y1 = TFTHEIGHT - y1 - 1;
96 x2 = TFTWIDTH - x2 - 1;
97 y2 = TFTHEIGHT - y2 - 1;
98 x3 = TFTWIDTH - x3 - 1;
99 y3 = TFTHEIGHT - y3 - 1;
110 y0 = TFTHEIGHT - y0 - 1;
111 y1 = TFTHEIGHT - y1 - 1;
112 y2 = TFTHEIGHT - y2 - 1;
113 y3 = TFTHEIGHT - y3 - 1;
119 oledc_writeCommand(SSD1331_CMD_COPY, 0);
120 oledc_writeCommand(x0, 0);
121 oledc_writeCommand(y0, 0);
122 oledc_writeCommand(x1, 0);
123 oledc_writeCommand(y1, 0);
124 oledc_writeCommand(x2, 0);
125 oledc_writeCommand(y2, 0);
130 oledc_screenLockClr();