Driver/ST7735S-0.96/graphics.c
/******************************************************************************
        Function description: fill color in the specified area
        Entry data:     xsta, ysta starting coordinates
                        xend, yend termination coordinates
        Return value: None
******************************************************************************/
Function description: fill color in the specified area
Entry data:     xsta, ysta starting coordinates
xend, yend termination coordinates
Return value: None
Function description : fill color in the specified area Entry data : xsta ysta starting coordinates xend yend termination coordinates Return value : None
void LCD_Fill(u16 xsta,u16 ysta,u16 xend,u16 yend,u32 color)
{          
	u16 i,j; 
	LCD_Address_Set(xsta,ysta,xend,yend);      
	for(i=ysta;i<=yend;i++)
	{													   	 	
		for(j=xsta;j<=xend;j++)LCD_WR_COLOR(color);
	} 					  	    
}
void LCD_Fill ( u16 xsta , u16 ysta , u16 xend , u16 yend , u32 color ) { u16 i , j ; LCD_Address_Set ( xsta , ysta , xend , yend ) ; for ( i = ysta ; i <= yend ; i ++ ) { for ( j = xsta ; j <= xend ; j ++ ) LCD_WR_COLOR ( color ) ; } }
Function description: fill color in the specified area
Entry data:     xsta, ysta starting coordinates
xend, yend termination coordinates
Return value: None
Function description : fill color in the specified area Entry data : xsta ysta starting coordinates xend yend termination coordinates Return value : None
//设置光标位置 