Exemple #1
0
void Dispaly_H(void)
{
	LCD_DisNum(10, 10, hsl_l[0].h ,WHITE);	
	LCD_DisNum(35, 10, hsl_l[1].h ,WHITE);	
	LCD_DisNum(60, 10, hsl_l[2].h ,WHITE);	
	LCD_DisNum(10, 30, hsl_l[3].h ,WHITE);	
	LCD_DisNum(35, 30, hsl_l[4].h ,WHITE);	
	LCD_DisNum(60, 30, hsl_l[5].h ,WHITE);	
	LCD_DisNum(10, 50, hsl_l[6].h ,WHITE);	
	LCD_DisNum(35, 50, hsl_l[7].h ,WHITE);	
	LCD_DisNum(60, 50, hsl_l[8].h ,WHITE);	
	
	LCD_DisNum(10, 80, hsl_l[0].s ,WHITE);	
	LCD_DisNum(35, 80, hsl_l[1].s ,WHITE);	
	LCD_DisNum(60, 80, hsl_l[2].s ,WHITE);	
	LCD_DisNum(10, 100, hsl_l[3].s ,WHITE);	
	LCD_DisNum(35, 100, hsl_l[4].s ,WHITE);	
	LCD_DisNum(60, 100, hsl_l[5].s ,WHITE);	
	LCD_DisNum(10, 120, hsl_l[6].s ,WHITE);	
	LCD_DisNum(35, 120, hsl_l[7].s ,WHITE);	
	LCD_DisNum(60, 120, hsl_l[8].s ,WHITE);	
	
	LCD_DisNum(10, 160, hsl_l[0].l ,WHITE);	
	LCD_DisNum(35, 160, hsl_l[1].l ,WHITE);	
	LCD_DisNum(60, 160, hsl_l[2].l ,WHITE);	
	LCD_DisNum(10, 180, hsl_l[3].l ,WHITE);	
	LCD_DisNum(35, 180, hsl_l[4].l ,WHITE);	
	LCD_DisNum(60, 180, hsl_l[5].l ,WHITE);	
	LCD_DisNum(10, 200, hsl_l[6].l ,WHITE);	
	LCD_DisNum(35, 200, hsl_l[7].l ,WHITE);	
	LCD_DisNum(60, 200, hsl_l[8].l ,WHITE);	
	
	
	LCD_DisNum(210, 160, hsl_l[0].color ,WHITE);	
	LCD_DisNum(235, 160, hsl_l[1].color ,WHITE);	
	LCD_DisNum(260, 160, hsl_l[2].color ,WHITE);	
	LCD_DisNum(210, 180, hsl_l[3].color ,WHITE);	
	LCD_DisNum(235, 180, hsl_l[4].color ,WHITE);	
	LCD_DisNum(260, 180, hsl_l[5].color ,WHITE);	
	LCD_DisNum(210, 200, hsl_l[6].color ,WHITE);	
	LCD_DisNum(235, 200, hsl_l[7].color ,WHITE);	
	LCD_DisNum(260, 200, hsl_l[8].color ,WHITE);	
	
	
	LCD_DisColor(210, 10, hsl_l[0].color );	
	LCD_DisColor(235, 10, hsl_l[1].color );	
	LCD_DisColor(260, 10, hsl_l[2].color );	
	LCD_DisColor(210, 30, hsl_l[3].color );	
	LCD_DisColor(235, 30, hsl_l[4].color );	
	LCD_DisColor(260, 30, hsl_l[5].color );	
	LCD_DisColor(210, 50, hsl_l[6].color );	
	LCD_DisColor(235, 50, hsl_l[7].color );	
	LCD_DisColor(260, 50, hsl_l[8].color );	

  LCD_DispChar(210,70,area[page],WHITE);
}
Exemple #2
0
/**
  * @brief  主函数
  * @param  无  
  * @retval 无
  */
int main(void)
{  
  LCD_Init();	
  
	LCD_Clear(0, 0, 240, 320, BACKGROUND);	
  
	LCD_DispChar(60, 60, 'A', RED);

  
	LCD_DispStr(10, 10, (uint8_t *)"This is a lcd demo to display ascii", RED);	
	
	LCD_DispStr(40, 100, (uint8_t *)"count:", RED);
	
	for( n=0; n<500000; n++ )
	{
		LCD_DisNum(100, 100, n, RED);
		Lcd_Delay(0xAFFf>>4);
	}
	
	while( 1 ){}
}