Download Formal Report - Larsen Project
Transcript
C:\Documents and Settings\Joshua\Desktop\senior project\EET404\Final Software Program\testi
aisle_number[1]="0";
aisle_number[2]="0";
}
void screen(void)
{
clear();
if(cursor==1)
{
switch(screen_number){
case 1:
cursor_position(0x81);
//verify choice 1 on menu
out_LCD_string(string3);
break;
case 2:
cursor_position(0x02);
scrn3:
out_LCD_string(string6);
//show screen 3: user input
cursor_position(0x94);
screen_number=3;
goto end2;
break;
case 3:
cursor_position(0x80);
//screen 4: verify aisle entered
out_LCD_string(string6);
cursor_position(0x89);
out_LCD_string(aisle_number);
screen_number=4;
cursor_position(0x97);
out_LCD_string(string5);
cursor_position(0x97);
goto end2;
break;
case 4:
cursor_position(0x80);
//screen 5: transmitting
out_LCD_string(transmitting);
screen_number = 5;
transmit();
if(status==1){
clear();
cursor_position(0x02);
goto scrn3;
//Entry invalid- go back to user
}
putc(selection,COM_A);
//input screen to reenter aisle#
goto end2;
break;
case 5:
putc('2',COM_A);
clear();
if(indicate==1)
out_LCD_string(operate_home);
else
out_LCD_string(operate);
goto end2;
break;
} //end switch statement
} //end cursor=1 if statement
if(cursor==2)
{
switch(screen_number){
case 1: cursor_position(0x83);
out_LCD_string(string4);
8
//verify choice 2 on menu