M37546 smart water meter asp source code: 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; }
You Might Like
Recommended ContentMore
Open source project More
Popular Components
Searched by Users
Just Take a LookMore
Trending Downloads
Trending ArticlesMore