doc/display/e-Paper-master/RaspberryPi_JetsonNano/c/lib/e-Paper/EPD_5in84.c
void EPD_5in84_Init(void)
{
    EPD_5in84_Reset();

	EPD_5in84_SendCommand(0x61);  // Resolution setting
	EPD_5in84_SendData(0x03);
	EPD_5in84_SendData(0x00);
	EPD_5in84_SendData(0x01);
	EPD_5in84_SendData(0x00);
	
	EPD_5in84_SendCommand(0x00);
	EPD_5in84_SendData(0xdf); 
	
	EPD_5in84_SendCommand(0xF8);  // Enter FITI Command
	EPD_5in84_SendData(0x60); 
	EPD_5in84_SendData(0xA5); 

	EPD_5in84_SendCommand(0xF8);  // Enter FITI Command
	EPD_5in84_SendData(0x89); 
	EPD_5in84_SendData(0xA5); 

	EPD_5in84_SendCommand(0xF8);  
	EPD_5in84_SendData(0x76);
	EPD_5in84_SendData(0x1F);
				
	EPD_5in84_SendCommand(0xF8);   //boost constant on time
	EPD_5in84_SendData(0x7E);
	EPD_5in84_SendData(0x31); 
	
	EPD_5in84_SendCommand(0xF8);  
	EPD_5in84_SendData(0xB8);  
	EPD_5in84_SendData(0x80);  
	
	EPD_5in84_SendCommand(0xF8);   //vgl=> GND:08, HZ:00[default]
	EPD_5in84_SendData(0x92);  
	EPD_5in84_SendData(0x00);  
	
	EPD_5in84_SendCommand(0xF8);   //VCOM(2frme off)=> GND:01(0x88=06)[default], HZ:11  
	EPD_5in84_SendData(0x87);  
	EPD_5in84_SendData(0x01);
	
	EPD_5in84_SendCommand(0xF8);   //r_vcom_init_sel
	EPD_5in84_SendData(0x88);  
	EPD_5in84_SendData(0x06); 
				
	EPD_5in84_SendCommand(0xF8);   
	EPD_5in84_SendData(0xA8);  
	EPD_5in84_SendData(0x30); 
	
	EPD_5in84_SendCommand(0xF8);   
	EPD_5in84_SendData(0xE8); 
	EPD_5in84_SendData(0x88); 

	EPD_5in84_SendCommand(0x04);  //power on  
	EPD_5in84_ReadBusy();
}
/******************************************************************************
function :	Initialize the e-Paper register
parameter:
******************************************************************************/
function :      Initialize the e-Paper register
parameter.
function : Initialize the e - Paper register parameter .
void EPD_5in84_Init(void)
{
    EPD_5in84_Reset();
	EPD_5in84_SendCommand(0x61);  
	EPD_5in84_SendData(0x03);
	EPD_5in84_SendData(0x00);
	EPD_5in84_SendData(0x01);
	EPD_5in84_SendData(0x00);
	EPD_5in84_SendCommand(0x00);
	EPD_5in84_SendData(0xdf); 
	EPD_5in84_SendCommand(0xF8);  
	EPD_5in84_SendData(0x60); 
	EPD_5in84_SendData(0xA5); 
	EPD_5in84_SendCommand(0xF8);  
	EPD_5in84_SendData(0x89); 
	EPD_5in84_SendData(0xA5); 
	EPD_5in84_SendCommand(0xF8);  
	EPD_5in84_SendData(0x76);
	EPD_5in84_SendData(0x1F);
	EPD_5in84_SendCommand(0xF8);   
	EPD_5in84_SendData(0x7E);
	EPD_5in84_SendData(0x31); 
	EPD_5in84_SendCommand(0xF8);  
	EPD_5in84_SendData(0xB8);  
	EPD_5in84_SendData(0x80);  
	EPD_5in84_SendCommand(0xF8);   
	EPD_5in84_SendData(0x92);  
	EPD_5in84_SendData(0x00);  
	EPD_5in84_SendCommand(0xF8);   
	EPD_5in84_SendData(0x87);  
	EPD_5in84_SendData(0x01);
	EPD_5in84_SendCommand(0xF8);   
	EPD_5in84_SendData(0x88);  
	EPD_5in84_SendData(0x06); 
	EPD_5in84_SendCommand(0xF8);   
	EPD_5in84_SendData(0xA8);  
	EPD_5in84_SendData(0x30); 
	EPD_5in84_SendCommand(0xF8);   
	EPD_5in84_SendData(0xE8); 
	EPD_5in84_SendData(0x88); 
	EPD_5in84_SendCommand(0x04);  
	EPD_5in84_ReadBusy();
}
void EPD_5in84_Init ( void ) { EPD_5in84_Reset ( ) ; EPD_5in84_SendCommand ( 0x61 ) ; EPD_5in84_SendData ( 0x03 ) ; EPD_5in84_SendData ( 0x00 ) ; EPD_5in84_SendData ( 0x01 ) ; EPD_5in84_SendData ( 0x00 ) ; EPD_5in84_SendCommand ( 0x00 ) ; EPD_5in84_SendData ( 0xdf ) ; EPD_5in84_SendCommand ( 0xF8 ) ; EPD_5in84_SendData ( 0x60 ) ; EPD_5in84_SendData ( 0xA5 ) ; EPD_5in84_SendCommand ( 0xF8 ) ; EPD_5in84_SendData ( 0x89 ) ; EPD_5in84_SendData ( 0xA5 ) ; EPD_5in84_SendCommand ( 0xF8 ) ; EPD_5in84_SendData ( 0x76 ) ; EPD_5in84_SendData ( 0x1F ) ; EPD_5in84_SendCommand ( 0xF8 ) ; EPD_5in84_SendData ( 0x7E ) ; EPD_5in84_SendData ( 0x31 ) ; EPD_5in84_SendCommand ( 0xF8 ) ; EPD_5in84_SendData ( 0xB8 ) ; EPD_5in84_SendData ( 0x80 ) ; EPD_5in84_SendCommand ( 0xF8 ) ; EPD_5in84_SendData ( 0x92 ) ; EPD_5in84_SendData ( 0x00 ) ; EPD_5in84_SendCommand ( 0xF8 ) ; EPD_5in84_SendData ( 0x87 ) ; EPD_5in84_SendData ( 0x01 ) ; EPD_5in84_SendCommand ( 0xF8 ) ; EPD_5in84_SendData ( 0x88 ) ; EPD_5in84_SendData ( 0x06 ) ; EPD_5in84_SendCommand ( 0xF8 ) ; EPD_5in84_SendData ( 0xA8 ) ; EPD_5in84_SendData ( 0x30 ) ; EPD_5in84_SendCommand ( 0xF8 ) ; EPD_5in84_SendData ( 0xE8 ) ; EPD_5in84_SendData ( 0x88 ) ; EPD_5in84_SendCommand ( 0x04 ) ; EPD_5in84_ReadBusy ( ) ; }
function :      Initialize the e-Paper register
parameter:
function : Initialize the e - Paper register parameter :
// Resolution setting // Enter FITI Command // Enter FITI Command //boost constant on time //vgl=> GND:08, HZ:00[default] //VCOM(2frme off)=> GND:01(0x88=06)[default], HZ:11   //r_vcom_init_sel //power on  