puts("-R <file> \t read random data from file (default not used)");
puts("-D <file> \t dump cell info into <file> (default not used)");
puts("-L <file> \t load cell info and display it (default no)");
+ puts("-n \t do not wait for user interaction (default no)");
return -23;
}
int quit=0; /* continue/quit status */
char save_file[MAX_CHARS_SAVE_FILE];
char load_file[MAX_CHARS_LOAD_FILE];
+ unsigned char no_wait;
printfd("debug: sizeof my u32 variable: %d\n",sizeof(u32));
printfd("debug: sizeof my cell struct: %d\n",sizeof(cell));
strcpy(random_file,"");
strcpy(save_file,"");
strcpy(load_file,"");
+ no_wait=0;
/* parse command args */
for(i=1;i<argc;i++)
case 'L':
strcpy(load_file,argv[++i]);
break;
+ case 'n':
+ no_wait=1;
+ break;
default:
usage();
return -23;
/* display again and listen for events */
display_draw(&display,display_x,display_y,display_z);
- display_event_init(&display);
- while(!quit)
+ if(!no_wait)
{
- display_scan_event(&display,&display_x,&display_y,&display_z,&quit);
- display_draw(&display,display_x,display_y,display_z);
+ display_event_init(&display);
+
+ while(!quit)
+ {
+ display_scan_event(&display,&display_x,&display_y,&display_z,&quit);
+ display_draw(&display,display_x,display_y,display_z);
+ }
}
display_release(&display);