Glcd setUpdateArea()
This function allows an area to be added to the update rectangle maintained by the intelligent update routine.
#include "GLCD_ST7565.h"
#include <Ports.h>
#include <RF12.h> // needed to avoid a linker error :(
GLCD_ST7565 glcd;
glcd.setUpdateArea(byte left,byte top,byte right,byte bottom, byte allowReduction=0)
Parameters
left
0-127, the left most edge of the update rectangle to be copied from RAM to the LCD
top
0-63, the top most edge of the update rectangle
right
0-127, the right most edge of the update rectangle. Must be >= left.
bottom
0-63, the bottom most edge of the update rectangle. Must be >= top
reset (optional)
0 or 1. The default is 0 (no). The update rectangle maintained by the intelligent update routine will be enlarged (if required) to include the area you have specified.
If set to 1 (yes) the update area maintained by the intelligent update routine will be replaced by the area you define.
Notes
By default all changes to the display RAM are tracked, and calls to display() only update the area of the screen required. Therefore this function should not be required during normal use. It is only required if you are doing you own direct memory access to the Display RAM.