How To Write Code For Micro Controller Assignment Answer
LCD_write(CTRL_WR,LCD_HOME_L1);
DisplayString(LCD_LINE1, 'SET DATE');
LCD_write(CTRL_WR,LCD_HOME_L2);
DisplayString(LCD_LINE2,line2);
if(Time_inState==0)
state=0;
switch(getcommand())
case 'A':
state=5;
Time_inState=5;
break;
case 'B':
state=0;
LCD_write(CTRL_WR,LCD_HOME_L2);
DisplayString(LCD_LINE2," ");
break;
case 'C':
{`//Adjusting month February according to the leap year`}
if(checkleap(year))
day_in_month[1]=29;
else
day_in_month[1]=28;
if(++date>day_in_month[month-1]) date=1;
line2[0]=date/10+48;
line2[1]=date%10+48;
Time_inState=5;
break;
break;
Assignment Help | How To Write Code For Micro Controller | Online Tutoring | Sample Homework