/*=====================================================================================================*/ void LCD_DrawLineY( u16 CoordiX, u16 CoordiY, u16 Length, u16 Color ) { LCD_SetWindow(CoordiX, CoordiY, CoordiX, CoordiY+Length-1); while(Length--) LCD_WriteColor(Color); }
/*=====================================================================================================*/ void LCD_DrawRectangleFill( u16 CoordiX, u16 CoordiY, u16 Width, u16 Height, u16 Color ) { u32 Area = Width*Height; LCD_SetWindow(CoordiX, CoordiY, CoordiX+Width-1, CoordiY+Height-1); while(Area--) LCD_WriteColor(Color); }
/*=====================================================================================================*/ void LCD_Clear( u16 Color ) { u32 Area = LCD_W*LCD_H; LCD_SetWindow(0, 0, LCD_W-1, LCD_H-1); while(Area--) LCD_WriteColor(Color); }
/*=====================================================================================================*/ void LCD_Clear( u16 Color ) { u32 Point = LCD_W*LCD_H; LCD_SetWindow(0, 0, LCD_W-1, LCD_H-1); while(Point--) LCD_WriteColor(Color); }
/*====================================================================================================*/ void LCD_Clear( uint16_t Color ) { uint32_t Point = LCD_W * LCD_H; LCD_SetWindow(0, 0, LCD_W-1, LCD_H-1); while(Point--) LCD_WriteColor(Color); }
/*=====================================================================================================*/ void LCD_DrawPicture( u16 CoordiX, u16 CoordiY, u16 Width, u16 Height, uc8 *Pic ) { u16* readPixel = (u16*)Pic; u32 i = 0, j = Height*Width; LCD_SetWindow(CoordiX, CoordiY, CoordiX+Width-1, CoordiY+Height-1); for(i=0; i<j; i++) LCD_WriteColor(readPixel[i]); }
/*====================================================================================================*/ void LCD_DrawPicture( uint16_t CoordiX, uint16_t CoordiY, uint16_t Width, uint16_t Height, const uint8_t *Pic ) { uint16_t *readPixel = (uint16_t*)Pic; uint32_t i = 0, j = Height * Width; LCD_SetWindow(CoordiX, CoordiY, CoordiX+Width-1, CoordiY+Height-1); for(i = 0; i < j; i++) LCD_WriteColor(readPixel[i]); }
/*====================================================================================================*/ void LCD_DrawPicture( uint16_t coordiX, uint16_t coordiY, uint16_t width, uint16_t height, const uint8_t *pic ) { uint16_t *readPixel = (uint16_t*)pic; uint32_t i = 0, j = height * width; LCD_SetWindow(coordiX, coordiY, coordiX + width - 1, coordiY + height - 1); for(i = 0; i < j; i++) LCD_WriteColor(readPixel[i]); }
/*=====================================================================================================*/ void LCD_DrawPixel( u16 CoordiX, u16 CoordiY, u16 Color ) { LCD_SetCursor(CoordiX, CoordiY); LCD_WriteColor(Color); }
/*====================================================================================================*/ void LCD_DrawPixel( uint16_t coordiX, uint16_t coordiY, uint16_t color ) { LCD_SetCursor(coordiX, coordiY); LCD_WriteColor(color); }