M37546智能水表
asp源码:
while ( 1 )
{
switch ( g_statusA )
{
case 1: /* Card has been inserted, check the type of card and process the corresponding task */
ProcessCard();
break;
case 2: /* Process flux */
ProcessFlux();
break;
case 3: /* Display some infomation on LCD such as surplus and the status of water meter */
LCDDisplay();
break;
case 4: /* Wait for 3s, detect flux and control the valve */
DetectFlux();
break;
case 5: /* Power down */
io_powercontrol = 0;
// DisableLCD();
//io_LCDCS = 1; /* Disable LCD */
/* test */
// g_statusA = 4;
/* test end */
break;
default: /* Accident */
g_statusA = 5; /* If there is an accident, go to power down */
break;
}
声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。 举报投诉
全部0条评论
快来发表一下你的评论吧 !