clock_functions.c
void weekday(tempo week)
{
	switch(week.day)
	{
		case 1:
			lcd_print_P(PSTR("Saturday"), 24, 5);
			break;
		case 2:
			lcd_print_P(PSTR("Sunday"), 27, 5);
			break;
		case 3:
			lcd_print_P(PSTR("Monday"), 27, 5);
			break;
		case 4:
			lcd_print_P(PSTR("Tuesday"), 24, 5);
			break;
		case 5:
			lcd_print_P(PSTR("Wednesday"), 19, 5);
			break;
		case 6:
			lcd_print_P(PSTR("Thursday"), 24, 5);
			break;
		case 7:
			lcd_print_P(PSTR("Friday"), 27, 5);
			break;
		default:
			lcd_print_P(PSTR("ERROR"), 29, 5);
	}
	origin();
}
/* Prints the day of the week */
Prints the day of the week
Prints the day of the week
void weekday(tempo week)
{
	switch(week.day)
	{
		case 1:
			lcd_print_P(PSTR("Saturday"), 24, 5);
			break;
		case 2:
			lcd_print_P(PSTR("Sunday"), 27, 5);
			break;
		case 3:
			lcd_print_P(PSTR("Monday"), 27, 5);
			break;
		case 4:
			lcd_print_P(PSTR("Tuesday"), 24, 5);
			break;
		case 5:
			lcd_print_P(PSTR("Wednesday"), 19, 5);
			break;
		case 6:
			lcd_print_P(PSTR("Thursday"), 24, 5);
			break;
		case 7:
			lcd_print_P(PSTR("Friday"), 27, 5);
			break;
		default:
			lcd_print_P(PSTR("ERROR"), 29, 5);
	}
	origin();
}
void weekday ( tempo week ) { switch ( week . day ) { case 1 : lcd_print_P ( PSTR ( " " ) , 24 , 5 ) ; break ; case 2 : lcd_print_P ( PSTR ( " " ) , 27 , 5 ) ; break ; case 3 : lcd_print_P ( PSTR ( " " ) , 27 , 5 ) ; break ; case 4 : lcd_print_P ( PSTR ( " " ) , 24 , 5 ) ; break ; case 5 : lcd_print_P ( PSTR ( " " ) , 19 , 5 ) ; break ; case 6 : lcd_print_P ( PSTR ( " " ) , 24 , 5 ) ; break ; case 7 : lcd_print_P ( PSTR ( " " ) , 27 , 5 ) ; break ; default : lcd_print_P ( PSTR ( " " ) , 29 , 5 ) ; } origin ( ) ; }
Prints the day of the week
Prints the day of the week