Exemple #1
0
void showSimParams( void )
{

	clearPosLCD(0,7,5);
	setCursorPosLCD(0, 7);
	writeIntegerLCD( Balloon_get_height(), DEC);

	clearPosLCD(1,3,5);
	setCursorPosLCD(1, 3);
	if(Balloon_get_valvestate() == OPEN) {
		writeStringLCD("OPEN  ");
	} else {
		writeStringLCD("CLOSED");
	}

	clearPosLCD(1,13,5);
	setCursorPosLCD(1, 13);
	if(Balloon_get_burnerstate() == ON) {
		writeStringLCD("ON ");
	} else {
		writeStringLCD("OFF");
	}
}
Exemple #2
0
/**
 * Timed Watchdog display only - the other heartbeat function
 * does not work in this example as we use blocked moving functions here.
 */
void watchDogRequest(void)
{
	static uint8_t heartbeat2 = false;
	if(heartbeat2)
	{
		clearPosLCD(0, 14, 1);
		heartbeat2 = false;
	}
	else
	{
		setCursorPosLCD(0, 14);
		writeStringLCD_P("#"); 
		heartbeat2 = true;
	}
}