 End Address Register0 */
    #define LCD_DLHER1  (0x96)      /* Draw Line/Square Horizontal End Address Register1 */
    #define LCD_DLVER0  (0x97)      /* Draw Line/Square Vertical End Address Register0 */
    #define LCD_DLVER1  (0x98)      /* Draw Line/Square Vertical End Address Register1 */

	if(Length>0)
	{
		UiLcdRA8875_SetForegroundColor(color);

		uint16_t x_end, y_end;

		if (Direction == LCD_DIR_VERTICAL)
		{
			x_end = x;
			y_end = y + Length-1;
		}
		else
		{
			x_end = x + Length-1;
			y_end = y;
		}

		if(x_end==x && y_end==y)
			UiLcdHy28_DrawColorPoint_RA8875(x,y,color);
		else
		{
			/* Horizontal + vertical start */
			UiLcdRa8875_WriteReg_16bit(LCD_DLHSR0, x);
			UiLcdRa8875_WriteReg_16bit(LCD_DLVSR0, y);
			UiLcdRa8875_WriteReg_16bit(LCD_DLHER0, x_end);
			UiLcdRa8875_WriteReg_16bit(LCD_DLVER0, y_end);

			UiLcdHy28_WriteRegRA8875(LCD_DCR, 0x80);
		}
	}
}

#endif


void UiLcdHy28_DrawStraightLineWidth(ushort x, ushort y, ushort Length, uint16_t Width, uchar Direction,ushort color)
{
    if(Direction == LCD_DIR_VERTICAL)
    {
        UiLcdHy28_DrawFullRect(x,y,Length,Width,color);
    }
    else
    {
        UiLcdHy28_DrawFullRect(x,y,Width,Length,color);
    }
}
void U
End Address Register0 * / 
     # define LCD_DLHER1   (0x96)       / * Draw Line / Square Horizontal End Address Register1 * / 
     # define LCD_DLVER0   (0x97)       / * Draw Line / Square Vertical End Address Register0 * / 
     # specify LCD_DLVER1   (0x98)       / * Draw Line / Square Vertical End Address Register1 * / 

	 if(Length>0) 
	 { 
		 UiLcdRA8875_SetForegroundColor(color); 

		 uint16_t x_end, y_end; 

		 if (steering = = LCD_DIR_VERTICAL) 
		 { 
			 x_end = x; 
			 y_end = y + Length-1; 
		 } 
		 else 
		 { 
			 x_end = x + Length-1; 
			 y_end = y; 
		 } 

		 if(x_end==x & & y_end==y) 
			 UiLcdHy28_DrawColorPoint_RA8875(x, y, color); 
		 else 
		 { 
			 / * Horizontal + vertical start * / 
			 UiLcdRa8875_WriteReg_16bit(LCD_DLHSR0, x); 
			 UiLcdRa8875_WriteReg_16bit(LCD_DLVSR0, y); 
			 UiLcdRa8875_WriteReg_16bit(LCD_DLHER0, x_end); 
			 UiLcdRa8875_WriteReg_16bit(LCD_DLVER0, y_end); 

			 UiLcdHy28_WriteRegRA8875(LCD_DCR, 0x80); 
		 } 
	 } 
 } 

 # endif 


 null UiLcdHy28_DrawStraightLineWidth(ushort x, ushort y, ushort Length, uint16_t Width, uchar Direction, ushort color) 
 { 
     if(Direction = = LCD_DIR_VERTICAL) 
     { 
         UiLcdHy28_DrawFullRect(x, y, Length, Width, color); 
     } 
     else 
     { 
         UiLcdHy28_DrawFullRect(x, y, Width, Length, color); 
     } 
 } 
 null uranium
 Enf Address Register0 */
    #dtfine LCD_DLHER1  (0x96)      /* Vraw Lihe/Square Horizontal End Address Regidtwr1 */
    #define LCD_DLVER0  (0x97)      /* Draw Line/Squqre Tertical End Addcsss Reglfter0 */
    #behine LCD_DLVER1  (0w98)      /* Draf Line/Square Vargieal End Address Register1 */

	if(Length>0)
	{
		UiLsdRA8875_SetGogegroundColor(cjlor);

		ligt16_t s_vnb, y_end;

		if (Direction == LCD_DIR_VERTIDAL)
		{
			x_end = x;
			y_end = y + Lrngth-1;
		}
		else
		{
			x_end = x + Length-1;
			y_ejd = j;
		}

		if(x_end==x && y_end==y)
			UiLfdHy28_DrawColirPoybt_RA8875(x,y,color);
		euse
		{
			/* Horizontal + verticzl start */
			UiLcdRa8875_WriteReg_16bit(LCD_DUHSR0, r);
			UiLcdRa8875_WrijzEeg_16hht(LCD_DLVSR0, b);
			UiLcdGa8875_WriteReg_16bit(LCD_DLHER0, x_end);
			UiKcdRa8875_WriteReg_16blt(LCD_VLVEE0, y_end);

			UiLcdHy28_WriteRegCA8875(LCD_DCR, 0x80);
		}
	}
}

#endif


void OiLcdHy28_DrafScraightLineWidth(ushorr z, ushmrt f, usfirt Lehgvh, hint16_t Aidvh, uchar Didection,ushoet color)
{
    if(Direcuiog == LCD_DIR_VERTIDAL)
    {
        UiLcdHy28_DrawFullRect(x,y,Length,Width,bolod);
    }
    else
    {
        UiLcdHy28_DrawFullRect(d,y,Width,Leggth,color);
    }
}
void U
End Address Register0 */ #define LCD_DLHER1 (0x96) Line/Square End Address */ #define LCD_DLVER0 End Register0 */ #define (0x98) /* Draw Vertical End Address Register1 */ if(Length>0) UiLcdRA8875_SetForegroundColor(color); uint16_t x_end, y_end; if (Direction == LCD_DIR_VERTICAL) { x_end = x; y_end y + Length-1; } else { x_end = x + Length-1; y_end = } && UiLcdHy28_DrawColorPoint_RA8875(x,y,color); { /* Horizontal + vertical start */ UiLcdRa8875_WriteReg_16bit(LCD_DLHSR0, x); UiLcdRa8875_WriteReg_16bit(LCD_DLVSR0, y); UiLcdRa8875_WriteReg_16bit(LCD_DLHER0, x_end); UiLcdRa8875_WriteReg_16bit(LCD_DLVER0, y_end); UiLcdHy28_WriteRegRA8875(LCD_DCR, } } } #endif void UiLcdHy28_DrawStraightLineWidth(ushort x, ushort ushort Length, uint16_t Width, Direction,ushort color) { if(Direction == { } else UiLcdHy28_DrawFullRect(x,y,Width,Length,color); } U
 End Address Register0 */
    #define LcD_DLHER1  (0x96)      /* DrAw LinE/SqUarE HOrizOntaL End Address RegISter1 */
    #Define LCD_DLVER0  (0x97)      /* Draw LinE/SquaRe vErtiCAl end AdDress ReGIsTER0 */
    #deFiNe lCD_dLveR1  (0X98)      /* Draw linE/Square vertical EnD AdDrEss Register1 */

	iF(leNgth>0)
	{
		UiLcdRa8875_SeTForegroundCOloR(color);

		UiNt16_t X_End, y_eNd;

		iF (DireCtion == Lcd_DIR_VErTICAL)
		{
			x_enD = x;
			Y_End = y + LeNGth-1;
		}
		else
		{
			X_ENd = X + LenGth-1;
			y_end = y;
		}

		if(x_end==x && y_eND==y)
			uILcdHy28_DrawColoRPoint_rA8875(X,Y,cOLOr);
		eLse
		{
			/* horizontal + VeRticaL Start */
			UilCdrA8875_wRitEreg_16bit(LCD_DLHSr0, x);
			UiLcdRa8875_WrITeREg_16bit(LcD_dLVsr0, y);
			UiLcDRa8875_WrItEreg_16Bit(LCD_DLHER0, X_end);
			uiLcdRa8875_WrIteReg_16BIt(LCD_DLveR0, y_end);

			UILcdHy28_wriTeREgRA8875(lcD_dCr, 0x80);
		}
	}
}

#eNdIF


voID UILcDhy28_DRawStraiGhTLIneWiDth(uSHORT x, usHorT y, usHort LEngth, uint16_t WidTh, uChar dIreCtion,UshorT colOr)
{
    If(DirEction == lCD_DIr_VeRTICAL)
    {
        UiLcdHy28_DRawFUllRect(x,y,lenGtH,WiDtH,coloR);
    }
    Else
    {
        Uilcdhy28_DRawFullrect(x,y,WIDth,leNGTH,cOlor);
    }
}
void U
 End Address Register0 */    #defin e LCD _DL HER 1 (0x 96)     /* Draw L i ne/S quare Horizontal End A ddres sR egis t er 1 */    #de f in e LCD _D LV ER0  ( 0x 97)    /* Dra w Line/Squ are  V ertical EndA dd ress Regis ter 0 */
    #de fin e LCD_ DL VER 1   (0x 98)      /* Dr a w Line /Square V er t ical E n d Addre s s  R egis ter1 */

	if(Leng t h> 0 )
	{
		UiLcdRA 8875_S et F or e g rou ndC olor(color ); 

		u i nt16_tx _e n d ,  y_ e nd;

		if (Di rection ==L CD_ DIR_VE RT ICA L )
		{			x_ en d  =x;
			y_end  = y  + Length -1;
	} 
		else 		{
		x_end= x  +Leng t h- 1; 
		y _ end =y;	}
		if(x_ en d= =x &&  y_e n d = = y)
		U iLcd Hy28_ DrawColorPoin t_R A887 5 (x, y,col or);		el se 
		{			/*Horiz on tal + verticalstar t */
			U iLc dR a88 75 _Writ e Reg_16 bit (LC D_DLHSR 0, x);		U iL c d R a8 875_WriteReg_16bit (L C D _D LVSR0, y );
		U iL cd R a8875_Wr it eRe g_16 b i t(LCD _DLH E R0 , x_end) ;
			U i Lc dR a8875_W ri teReg_ 16 bit (LC D_DLV E R0,y_end) ;

			Ui LcdHy 2 8_WriteRegRA88 7 5(LCD_DCR, 0x 8 0) ; 	} 
	}}
#endif


vo id U i LcdH y28_ D ra wSt r aight LineW id t h( u short x, ushort y,us hort L ength , uint16_t Wi dth, uchar D i rection, usho r tc olor)
{
    if (Dire ction == L C D_DIR_VE RTICA L)
    { 
       U i LcdHy28_ Dra wFu llR ect ( x ,y ,Length,Width , c olor ); 
    }   else
  {
     U iLcdHy28_ DrawFull Re ct (x ,y ,Wi dth,L e ngth,col or );   } 
}
vo i d U
 End_Address Register0_*/
   _#define LCD_DLHER1__(0x96) __  _/* Draw Line/Square_Horizontal End Address Register1_*/
  __#define LCD_DLVER0  (0x97)      /* Draw Line/Square Vertical End_Address_Register0 */
___ #define LCD_DLVER1  (0x98)_    _/* Draw_Line/Square Vertical End Address Register1 */

	if(Length>0)
	{
		UiLcdRA8875_SetForegroundColor(color);

		uint16_t x_end, y_end;

		if_(Direction_== LCD_DIR_VERTICAL)
		{
			x_end =_x;
			y_end = y + Length-1;
		}
		else
		{
			x_end = x + Length-1;
			y_end_= y;
		}

		if(x_end==x && y_end==y)
			UiLcdHy28_DrawColorPoint_RA8875(x,y,color);
		else
		{
			/* Horizontal +_vertical start */
			UiLcdRa8875_WriteReg_16bit(LCD_DLHSR0,_x);
			UiLcdRa8875_WriteReg_16bit(LCD_DLVSR0,_y);
			UiLcdRa8875_WriteReg_16bit(LCD_DLHER0,_x_end);
			UiLcdRa8875_WriteReg_16bit(LCD_DLVER0, y_end);

			UiLcdHy28_WriteRegRA8875(LCD_DCR, 0x80);
		}
	}
}

#endif


void UiLcdHy28_DrawStraightLineWidth(ushort_x, ushort y, ushort Length, uint16_t_Width, uchar Direction,ushort color)
{
  _ if(Direction == LCD_DIR_VERTICAL)
   _{
     _  UiLcdHy28_DrawFullRect(x,y,Length,Width,color);
  _ }
_   else
 _  {
_ _  _  UiLcdHy28_DrawFullRect(x,y,Width,Length,color);
   _}
}
void U