doc/display/e-Paper-master/RaspberryPi_JetsonNano/c/lib/e-Paper/EPD_2in13_V3.c
static void EPD_2in13_V3_SetWindows(UWORD Xstart, UWORD Ystart, UWORD Xend, UWORD Yend)
{
	// Ystart = 295 - Ystart;
	
    EPD_2in13_V3_SendCommand(0x44); // SET_RAM_X_ADDRESS_START_END_POSITION
    EPD_2in13_V3_SendData((Xstart>>3) & 0xFF);
    EPD_2in13_V3_SendData((Xend>>3) & 0xFF);
	
    EPD_2in13_V3_SendCommand(0x45); // SET_RAM_Y_ADDRESS_START_END_POSITION
    EPD_2in13_V3_SendData(Yend & 0xFF);
    EPD_2in13_V3_SendData((Yend >> 8) & 0xFF);
    EPD_2in13_V3_SendData(Ystart & 0xFF);
    EPD_2in13_V3_SendData((Ystart >> 8) & 0xFF);
}
/******************************************************************************
function :	Setting the display window
parameter:
******************************************************************************/
function :      Setting the display window
parameter.
function : Setting the display window parameter .
static void EPD_2in13_V3_SetWindows(UWORD Xstart, UWORD Ystart, UWORD Xend, UWORD Yend)
{
    EPD_2in13_V3_SendCommand(0x44); 
    EPD_2in13_V3_SendData((Xstart>>3) & 0xFF);
    EPD_2in13_V3_SendData((Xend>>3) & 0xFF);
    EPD_2in13_V3_SendCommand(0x45); 
    EPD_2in13_V3_SendData(Yend & 0xFF);
    EPD_2in13_V3_SendData((Yend >> 8) & 0xFF);
    EPD_2in13_V3_SendData(Ystart & 0xFF);
    EPD_2in13_V3_SendData((Ystart >> 8) & 0xFF);
}
static void EPD_2in13_V3_SetWindows ( UWORD Xstart , UWORD Ystart , UWORD Xend , UWORD Yend ) { EPD_2in13_V3_SendCommand ( 0x44 ) ; EPD_2in13_V3_SendData ( ( Xstart >> 3 ) & 0xFF ) ; EPD_2in13_V3_SendData ( ( Xend >> 3 ) & 0xFF ) ; EPD_2in13_V3_SendCommand ( 0x45 ) ; EPD_2in13_V3_SendData ( Yend & 0xFF ) ; EPD_2in13_V3_SendData ( ( Yend >> 8 ) & 0xFF ) ; EPD_2in13_V3_SendData ( Ystart & 0xFF ) ; EPD_2in13_V3_SendData ( ( Ystart >> 8 ) & 0xFF ) ; }
function :      Setting the display window
parameter:
function : Setting the display window parameter :
// Ystart = 295 - Ystart; // SET_RAM_X_ADDRESS_START_END_POSITION // SET_RAM_Y_ADDRESS_START_END_POSITION