doc/display/e-Paper-master/RaspberryPi_JetsonNano/c/lib/e-Paper/EPD_2in13_V3.c
void EPD_2in13_V3_Init(void)
{
	EPD_2in13_V3_Reset();
	DEV_Delay_ms(100);

	EPD_2in13_V3_ReadBusy();   
	EPD_2in13_V3_SendCommand(0x12);  //SWRESET
	EPD_2in13_V3_ReadBusy();   

	EPD_2in13_V3_SendCommand(0x01); //Driver output control      
	EPD_2in13_V3_SendData(0x27);
	EPD_2in13_V3_SendData(0x01);
	EPD_2in13_V3_SendData(0x01);

	EPD_2in13_V3_SendCommand(0x11); //data entry mode       
	EPD_2in13_V3_SendData(0x01);

	EPD_2in13_V3_SetWindows(0, 0, EPD_2in13_V3_WIDTH-1, 296-1);
	
	EPD_2in13_V3_SendCommand(0x3C); //BorderWavefrom
	EPD_2in13_V3_SendData(0x05);	

	EPD_2in13_V3_SendCommand(0x21); //  Display update control
	EPD_2in13_V3_SendData(0x00);
	EPD_2in13_V3_SendData(0x80);	

	EPD_2in13_V3_SendCommand(0x18); //Read built-in temperature sensor
	EPD_2in13_V3_SendData(0x80);	
	
	EPD_2in13_V3_SetCursor(0, 0);
	EPD_2in13_V3_ReadBusy();
}
/******************************************************************************
function :	Initialize the e-Paper register
parameter:
******************************************************************************/
function :      Initialize the e-Paper register
parameter.
function : Initialize the e - Paper register parameter .
void EPD_2in13_V3_Init(void)
{
	EPD_2in13_V3_Reset();
	DEV_Delay_ms(100);
	EPD_2in13_V3_ReadBusy();   
	EPD_2in13_V3_SendCommand(0x12);  
	EPD_2in13_V3_ReadBusy();   
	EPD_2in13_V3_SendCommand(0x01); 
	EPD_2in13_V3_SendData(0x27);
	EPD_2in13_V3_SendData(0x01);
	EPD_2in13_V3_SendData(0x01);
	EPD_2in13_V3_SendCommand(0x11); 
	EPD_2in13_V3_SendData(0x01);
	EPD_2in13_V3_SetWindows(0, 0, EPD_2in13_V3_WIDTH-1, 296-1);
	EPD_2in13_V3_SendCommand(0x3C); 
	EPD_2in13_V3_SendData(0x05);	
	EPD_2in13_V3_SendCommand(0x21); 
	EPD_2in13_V3_SendData(0x00);
	EPD_2in13_V3_SendData(0x80);	
	EPD_2in13_V3_SendCommand(0x18); 
	EPD_2in13_V3_SendData(0x80);	
	EPD_2in13_V3_SetCursor(0, 0);
	EPD_2in13_V3_ReadBusy();
}
void EPD_2in13_V3_Init ( void ) { EPD_2in13_V3_Reset ( ) ; DEV_Delay_ms ( 100 ) ; EPD_2in13_V3_ReadBusy ( ) ; EPD_2in13_V3_SendCommand ( 0x12 ) ; EPD_2in13_V3_ReadBusy ( ) ; EPD_2in13_V3_SendCommand ( 0x01 ) ; EPD_2in13_V3_SendData ( 0x27 ) ; EPD_2in13_V3_SendData ( 0x01 ) ; EPD_2in13_V3_SendData ( 0x01 ) ; EPD_2in13_V3_SendCommand ( 0x11 ) ; EPD_2in13_V3_SendData ( 0x01 ) ; EPD_2in13_V3_SetWindows ( 0 , 0 , EPD_2in13_V3_WIDTH - 1 , 296 - 1 ) ; EPD_2in13_V3_SendCommand ( 0x3C ) ; EPD_2in13_V3_SendData ( 0x05 ) ; EPD_2in13_V3_SendCommand ( 0x21 ) ; EPD_2in13_V3_SendData ( 0x00 ) ; EPD_2in13_V3_SendData ( 0x80 ) ; EPD_2in13_V3_SendCommand ( 0x18 ) ; EPD_2in13_V3_SendData ( 0x80 ) ; EPD_2in13_V3_SetCursor ( 0 , 0 ) ; EPD_2in13_V3_ReadBusy ( ) ; }
function :      Initialize the e-Paper register
parameter:
function : Initialize the e - Paper register parameter :
//SWRESET //Driver output control       //data entry mode        //BorderWavefrom //  Display update control //Read built-in temperature sensor