display.h
void displaySetAddrWindow(const u_int16_t x0, const u_int16_t y0, const u_int16_t x1, const u_int16_t y1) {
	displayWritecommand(ILI9340_CASET); // Column addr set
	displayWritedata(x0 >> 8);
	displayWritedata(x0 & 0xFF); // XSTART
	displayWritedata(x1 >> 8);
	displayWritedata(x1 & 0xFF); // XEND
	displayWritecommand(ILI9340_PASET); // Row addr set
	displayWritedata(y0>>8);
	displayWritedata(y0); // YSTART
	displayWritedata(y1>>8);
	displayWritedata(y1); // YEND
}
/** set the region where to draw new pixels to */
set the region where to draw new pixels to
set the region where to draw new pixels to
void displaySetAddrWindow(const u_int16_t x0, const u_int16_t y0, const u_int16_t x1, const u_int16_t y1) {
	displayWritecommand(ILI9340_CASET); 
	displayWritedata(x0 >> 8);
	displayWritedata(x0 & 0xFF); 
	displayWritedata(x1 >> 8);
	displayWritedata(x1 & 0xFF); 
	displayWritecommand(ILI9340_PASET); 
	displayWritedata(y0>>8);
	displayWritedata(y0); 
	displayWritedata(y1>>8);
	displayWritedata(y1); 
}
void displaySetAddrWindow ( const u_int16_t x0 , const u_int16_t y0 , const u_int16_t x1 , const u_int16_t y1 ) { displayWritecommand ( ILI9340_CASET ) ; displayWritedata ( x0 >> 8 ) ; displayWritedata ( x0 & 0xFF ) ; displayWritedata ( x1 >> 8 ) ; displayWritedata ( x1 & 0xFF ) ; displayWritecommand ( ILI9340_PASET ) ; displayWritedata ( y0 >> 8 ) ; displayWritedata ( y0 ) ; displayWritedata ( y1 >> 8 ) ; displayWritedata ( y1 ) ; }
set the region where to draw new pixels to
set the region where to draw new pixels to
// Column addr set // XSTART // XEND // Row addr set // YSTART // YEND