doc/display/e-Paper-master/RaspberryPi_JetsonNano/c/lib/e-Paper/EPD_5in84.c
void EPD_5in84_Display(UBYTE *Image)
{
    UWORD Width, Height, i, j;
    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<Height;i++) {
		// for(j=0; j<Width; j++) {
			// EPD_5in84_SendData(0x00);
		// }
	// }
	EPD_5in84_SendCommand(0x13);
	for(i=0;i<Height;i++) {
		for(j=0; j<Width; j++) {
			EPD_5in84_SendData(Image[i*Width + j]);  
		}
	}
    EPD_5in84_TurnOnDisplay();
}
/******************************************************************************
function :	Sends the image buffer in RAM to e-Paper and displays
parameter:
******************************************************************************/
function :      Sends the image buffer in RAM to e-Paper and displays
parameter.
function : Sends the image buffer in RAM to e - Paper and displays parameter .
void EPD_5in84_Display(UBYTE *Image)
{
    UWORD Width, Height, i, j;
    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<Height;i++) {
		for(j=0; j<Width; j++) {
			EPD_5in84_SendData(Image[i*Width + j]);  
		}
	}
    EPD_5in84_TurnOnDisplay();
}
void EPD_5in84_Display ( UBYTE * Image ) { UWORD Width , Height , i , j ; 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 < Height ; i ++ ) { for ( j = 0 ; j < Width ; j ++ ) { EPD_5in84_SendData ( Image [ i * Width + j ] ) ; } } EPD_5in84_TurnOnDisplay ( ) ; }
function :      Sends the image buffer in RAM to e-Paper and displays
parameter:
function : Sends the image buffer in RAM to e - Paper and displays parameter :
// EPD_5in84_SendCommand(0x10); // for(i=0;i<Height;i++) { // for(j=0; j<Width; j++) { // EPD_5in84_SendData(0x00); // } // }