菜鸟求助呀关于LPC2103 TFT的程序问题

[复制链接]
1422|1
 楼主| 604603487 发表于 2012-10-30 20:00 | 显示全部楼层 |阅读模式
int main()
{
char da[20];
BacklightOn();
LCD_Init();
LCD_Clear_Screen(Blue);
SHT11_Write_Register(REG_WRITE,FUNCTION_SET);
     
        Font = 0;
  LCD_PutString(15,30,"temp and humi test",Cyan,Blue);
  Font = 1;
  LCD_PutString(38,46,"Gao  Peng",Green,Blue);
  Font = 0;
  LCD_PutString(25,65,"temp  and humi",Yellow,Blue);
for(;;){  
  sprintf(da, "%d %d", temp_test(),humi_test());
      LCD_PutString(20,90,da,Magenta,Blue);
}
}
我想在屏幕是循环输出temp 和humi的值,但是他不循环呀,是不是引脚的定义相互排斥呀
阿南 发表于 2012-10-30 22:18 | 显示全部楼层
for()函数里加个延时程序,如2秒,就可以看到效果了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

59

主题

926

帖子

12

粉丝
快速回复 在线客服 返回列表 返回顶部