int main(void)
{
u8 lcd_id[12]; //′æ·ÅLCD ID×Ö·û′®
u8 vvv[20];
u8 i;
i=usmart_get_runtime()/10;
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);//éèÖÃÏμí3ÖD¶ÏóÅÏ輶·Ö×é2
delay_init(168); //3õê¼»ˉÑóê±oˉêy
uart_init(115200); //3õê¼»ˉ′®¿ú2¨ìØÂêÎa115200
usmart_dev.init(84); //3õê¼»ˉUSMART
LED_Init(); //3õê¼»ˉLED
LCD_Init(); //3õê¼»ˉLCD
POINT_COLOR=RED;
sprintf((char*)lcd_id,"LCD ID:%04X",lcddev.id);//½«LCD ID′òó¡μ½lcd_idêy×é¡£
sprintf((char*)vvv,"vvv:%04X",i);
LCD_ShowString(30,50,200,16,24,"meng qing xi");
LCD_ShowString(30,80,200,16,24,"now");
LCD_ShowString(30,110,200,16,24,"just do it");
LCD_ShowString(30,140,200,16,24,"2016/11/15");
LCD_ShowString(30,170,200,16,24,lcd_id); //ÏÔê¾LCD ID
LCD_ShowString(30,230,200,16,24,vvv);
while(1)
{
LED0=!LED0;
delay_ms(500);
}
}
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
一周热门 更多>