23 void oledc_drawPixelPrimative(
int x,
int y,
unsigned int color)
25 if ((
x < 0) || (
x >= _width) || (y < 0) || (y >= _height))
27 oledc_screenLockClr();
32 switch (TFTROTATION) {
39 y = TFTHEIGHT - y - 1;
43 y = TFTHEIGHT - y - 1;
49 oledc_writeCommand(color >> 8, 1);
50 oledc_writeCommand(color, 1);
54 void oledc_drawPixel(
int x,
int y,
unsigned int color)
56 while(oledc_screenLock());
57 oledc_screenLockSet();
59 oledc_drawPixelPrimative(
x, y, color);
61 oledc_screenLockClr();