Is it possible, to split the screen updates into "smaller" sections rather then updating the full display ? Basicaly what i want to achieve, is a smaller/faster loop-time.
My current problem is, that the loop needs about 40-100ms to render the screen (depending on the complexity of the screen). If i receive serial data during the rendering, there is a good chance that the serial buffer will overflow. Currently, i'm using timer interrupts on a regular schedule to avoid the overflow problem - but this adds unnecessary complexity. So, if the screen update could be split into smaller steps (say i.e. into 128byte "pages") this would greatly reduce the loop cycle time and remove complexity - though there might be a problem with screen flickering afterwards.
case 0 : lcd.setUpdateArea(0,0, 8, 128); break;
case 1 : lcd.setUpdateArea(0,8, 16, 128); break;
case n : lcd.setUpdateArea(0,8*n, 8*(n+1), 128); break;
default: area = 0;