Driver/ST7735S-0.96/graphics.c
/******************************************************************************
        Function description: display string
        Entry data:     x, y starting point coordinates
                        *p string start address
        Return value: None
******************************************************************************/
Function description: display string
Entry data:     x, y starting point coordinates
p string start address
Return value: None
Function description : display string Entry data : x y starting point coordinates p string start address Return value : None
void LCD_ShowString(u16 x,u16 y,const u8 *p,u32 color)
{         
    while(*p!='\0')
    {       
        if(x>LCD_W-16){x=0;y+=16;}
        if(y>LCD_H-16){y=x=0;LCD_Clear(RED);}
        LCD_ShowChar(x,y,*p,0,color);
        x+=8;
        p++;
    }
}
void LCD_ShowString ( u16 x , u16 y , const u8 * p , u32 color ) { while ( * p != ' \0 ' ) { if ( x > LCD_W - 16 ) { x = 0 ; y += 16 ; } if ( y > LCD_H - 16 ) { y = x = 0 ; LCD_Clear ( RED ) ; } LCD_ShowChar ( x , y , * p , 0 , color ) ; x += 8 ; p ++ ; } }
Function description: display string
Entry data:     x, y starting point coordinates
p string start address
Return value: None
Function description : display string Entry data : x y starting point coordinates p string start address Return value : None