Example #1
0
int main() {
	screen next_screen = HOME;
	populate_values();
	snprintf(msg, MSG_LEN, "-");
	n_keys = 0;

	while (next_screen != EXIT) {
		switch (next_screen) {
		case HOME:
			next_screen = home_screen();
			break;
		case ABOUT:
			next_screen = about_screen();
			break;
		case RUN:
			next_screen = run_screen();
			break;
		case RUNNING:
			next_screen = running_screen();
			break;
		case EXIT:
			break;
		}
	}

	snprintf(msg, MSG_LEN, " Saindo da aplicação");
	goodbye();

	return 0;
}
void main()
{
 init_uart();
 clr_screen();
 while(1)
 {
  home_screen();
  tx('H');
  delay(2);

  tx('E');
  delay(2);
 }		   
}