24 void oledc_scrollStart(
char h,
char v)
26 while(oledc_screenLock());
27 oledc_screenLockSet();
29 if(TFTSCROLLING) oledc_writeCommand(SSD1331_CMD_SCROLLSTOP, 0);
32 switch (TFTROTATION) {
46 if(v < 0) v = _width + v;
47 if(h < 0) h = _height + h;
48 if(v > _width/2) v = _width/2;
49 if(h > _height/2) h = _height/2;
51 oledc_writeCommand(SSD1331_CMD_SCROLLSETUP, 0);
53 oledc_writeCommand(h, 0);
54 oledc_writeCommand(0, 0);
55 oledc_writeCommand(_height, 0);
56 oledc_writeCommand(v, 0);
57 oledc_writeCommand(0, 0);
62 oledc_writeCommand(SSD1331_CMD_SCROLLSTART, 0);
65 oledc_screenLockClr();