Clone13

Dependents:   SignalProcessLab DigitalSignalAlgorithm_Lab DigitalSignal_Lab

Revision:
1:fc2dc08db78b
Parent:
0:ef139e18ca64
--- a/RK043FN48H.cpp	Mon Aug 26 16:34:40 2019 +0000
+++ b/RK043FN48H.cpp	Wed Aug 28 17:02:28 2019 +0000
@@ -197,3 +197,127 @@
 
 
 
+//New Function
+//Add date: 25/08/2019
+
+void RK043FN48H::DrawHLine(uint16_t Xpos, uint16_t Ypos, uint16_t Length)
+{
+  BSP_LCD_DrawHLine(Xpos, Ypos, Length);
+}
+
+void RK043FN48H::DrawVLine(uint16_t Xpos, uint16_t Ypos, uint16_t Length)
+{
+  BSP_LCD_DrawVLine(Xpos, Ypos, Length);
+}
+
+void RK043FN48H::DrawLine(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2)
+{
+  BSP_LCD_DrawLine(x1, y1, x2, y2);
+}
+
+void RK043FN48H::DrawRect(uint16_t Xpos, uint16_t Ypos, uint16_t Width, uint16_t Height)
+{
+  BSP_LCD_DrawRect(Xpos, Ypos, Width, Height);
+}
+
+void RK043FN48H::DrawCircle(uint16_t Xpos, uint16_t Ypos, uint16_t Radius)
+{
+  BSP_LCD_DrawCircle(Xpos, Ypos, Radius);
+}
+
+void RK043FN48H::DrawPolygon(pPoint Points, uint16_t PointCount)
+{
+  BSP_LCD_DrawPolygon(Points, PointCount);
+}
+
+void RK043FN48H::DrawEllipse(int Xpos, int Ypos, int XRadius, int YRadius)
+{
+  BSP_LCD_DrawEllipse(Xpos, Ypos, XRadius, YRadius);
+}
+
+void RK043FN48H::DrawBitmap(uint32_t Xpos, uint32_t Ypos, uint8_t *pbmp)
+{
+  BSP_LCD_DrawBitmap(Xpos, Ypos, pbmp);
+}
+
+void RK043FN48H::FillRect(uint16_t Xpos, uint16_t Ypos, uint16_t Width, uint16_t Height)
+{
+  BSP_LCD_FillRect(Xpos, Ypos, Width, Height);
+}
+
+void RK043FN48H::FillCircle(uint16_t Xpos, uint16_t Ypos, uint16_t Radius)
+{
+  BSP_LCD_FillCircle(Xpos, Ypos, Radius);
+}
+
+void RK043FN48H::FillPolygon(pPoint Points, uint16_t PointCount)
+{
+  BSP_LCD_FillPolygon(Points, PointCount);
+}
+
+void RK043FN48H::FillEllipse(int Xpos, int Ypos, int XRadius, int YRadius)
+{
+  BSP_LCD_FillEllipse(Xpos, Ypos, XRadius, YRadius);
+}
+
+void RK043FN48H::SetTextColor(uint32_t Color)
+{
+  BSP_LCD_SetTextColor(Color);
+}
+
+uint32_t RK043FN48H::GetTextColor(void)
+{
+  return BSP_LCD_GetTextColor();
+}
+
+void RK043FN48H::SetBackColor(uint32_t Color)
+{
+  BSP_LCD_SetBackColor(Color);
+}
+
+uint32_t RK043FN48H::GetBackColor(void)
+{
+  return BSP_LCD_GetBackColor();
+}
+
+void RK043FN48H::SetFont(sFONT *fonts)
+{
+  BSP_LCD_SetFont(fonts);
+}
+
+sFONT *RK043FN48H::GetFont(void)
+{
+  return BSP_LCD_GetFont();
+}
+
+uint32_t RK043FN48H::ReadPixel(uint16_t Xpos, uint16_t Ypos)
+{
+  return BSP_LCD_ReadPixel(Xpos, Ypos);
+}
+
+void RK043FN48H::DrawPixel(uint16_t Xpos, uint16_t Ypos, uint32_t pixel)
+{
+  BSP_LCD_DrawPixel(Xpos, Ypos, pixel);
+}
+
+
+void RK043FN48H::ClearStringLine(uint32_t Line)
+{
+  BSP_LCD_ClearStringLine(Line);
+}
+
+void RK043FN48H::DisplayStringAtLine(uint16_t Line, uint8_t *ptr)
+{
+  BSP_LCD_DisplayStringAtLine(Line, ptr);
+}
+
+void RK043FN48H::DisplayStringAt(uint16_t Xpos, uint16_t Ypos, uint8_t *Text, Text_AlignModeTypdef Mode)
+{
+  BSP_LCD_DisplayStringAt(Xpos, Ypos, Text, Mode);
+}
+
+void RK043FN48H::DisplayChar(uint16_t Xpos, uint16_t Ypos, uint8_t Ascii)
+{
+  BSP_LCD_DisplayChar(Xpos, Ypos, Ascii);
+}
+