doc/display/e-Paper-master/RaspberryPi_JetsonNano/c/lib/e-Paper/EPD_5in84.c
void EPD_5in84_Clear(void)
{
    UWORD Width, Height, i;
    Width = (EPD_5in84_WIDTH % 8 == 0)? (EPD_5in84_WIDTH / 8 ): (EPD_5in84_WIDTH / 8 + 1);
    Height = EPD_5in84_HEIGHT;
	
	// EPD_5in84_SendCommand(0x10);
	// for(i=0; i<Width*Height; i++) {
		// EPD_5in84_SendData(0x00);  
	// }
	EPD_5in84_SendCommand(0x13);
	for(i=0; i<Width*Height; i++) {
		EPD_5in84_SendData(0xff);  
	}
	EPD_5in84_TurnOnDisplay();
}
/******************************************************************************
function :	Clear screen
parameter:
******************************************************************************/
function :      Clear screen
parameter.
function : Clear screen parameter .
void EPD_5in84_Clear(void)
{
    UWORD Width, Height, i;
    Width = (EPD_5in84_WIDTH % 8 == 0)? (EPD_5in84_WIDTH / 8 ): (EPD_5in84_WIDTH / 8 + 1);
    Height = EPD_5in84_HEIGHT;
	EPD_5in84_SendCommand(0x13);
	for(i=0; i<Width*Height; i++) {
		EPD_5in84_SendData(0xff);  
	}
	EPD_5in84_TurnOnDisplay();
}
void EPD_5in84_Clear ( void ) { UWORD Width , Height , i ; Width = ( EPD_5in84_WIDTH % 8 == 0 ) ? ( EPD_5in84_WIDTH / 8 ) : ( EPD_5in84_WIDTH / 8 + 1 ) ; Height = EPD_5in84_HEIGHT ; EPD_5in84_SendCommand ( 0x13 ) ; for ( i = 0 ; i < Width * Height ; i ++ ) { EPD_5in84_SendData ( 0xff ) ; } EPD_5in84_TurnOnDisplay ( ) ; }
function :      Clear screen
parameter:
function : Clear screen parameter :
// EPD_5in84_SendCommand(0x10); // for(i=0; i<Width*Height; i++) { // EPD_5in84_SendData(0x00);   // }