예제 #1
0
void updateLcd(void){
	char buffer[4];
	int integerPart;
	int decimalPart;
	// RELAY
	LCD_gotoXY(13,0);
	if(currentStatus)LCD_sendString("ON ");
	else LCD_sendString("OFF");
	
	
	// current temp
	LCD_gotoXY(2,0);
	splitDouble(&currentTemp,1,&integerPart,&decimalPart);
	sprintf(buffer,"%3d.%1d",integerPart, decimalPart);
	LCD_sendString(buffer);
	
	// current setpoint
	LCD_gotoXY(2,1);
	splitDouble(&currentTempSetPoint,1,&integerPart,&decimalPart);
	sprintf(buffer,"%3d.%1d",integerPart, decimalPart);
	LCD_sendString(buffer);
	
	// current hist
	LCD_gotoXY(11,1);
	splitDouble(&currentHistSetPoint,1,&integerPart,&decimalPart);
	sprintf(buffer,"%3d.%1d",integerPart, decimalPart);
	LCD_sendString(buffer);
	

}
예제 #2
0
void showLcdSplash(void){
	
	LCD_gotoXY(2,0);
	LCD_sendString("Wine Control");
	LCD_gotoXY(1,1);
	LCD_sendString("Serafim Cunha");
	_delay_ms(2000);
	LCD_clr();
	
	
	
}
예제 #3
0
void setLcdInitialFields(void){

	LCD_clr();
	LCD_gotoXY(0,0);
	LCD_sendString("T:");
	LCD_gotoXY(9,0);
	LCD_sendString("ST:");
	
	// sendond filds	
	LCD_gotoXY(0,1);
	LCD_sendString("S:");
	LCD_gotoXY(9,1);
	LCD_sendString("D:");	

}
예제 #4
0
void showLcdSavedMessage(void){
	
	LCD_clr();
	LCD_gotoXY(7,0);
	LCD_sendString(" SAVED");

	_delay_ms(500);
	
}
void APP_init()
{
	/* Initialize LCD Driver */
	LCD_init();
	LCD_clear(); /*clear LCD at the beginning */
	LCD_sendString("Temp = ");
	LCD_goToRowColumn(0,10);
	LCD_sendData('C');
	SENSOR_init();
}