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(¤tTemp,1,&integerPart,&decimalPart); sprintf(buffer,"%3d.%1d",integerPart, decimalPart); LCD_sendString(buffer); // current setpoint LCD_gotoXY(2,1); splitDouble(¤tTempSetPoint,1,&integerPart,&decimalPart); sprintf(buffer,"%3d.%1d",integerPart, decimalPart); LCD_sendString(buffer); // current hist LCD_gotoXY(11,1); splitDouble(¤tHistSetPoint,1,&integerPart,&decimalPart); sprintf(buffer,"%3d.%1d",integerPart, decimalPart); LCD_sendString(buffer); }
void showLcdSplash(void){ LCD_gotoXY(2,0); LCD_sendString("Wine Control"); LCD_gotoXY(1,1); LCD_sendString("Serafim Cunha"); _delay_ms(2000); LCD_clr(); }
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:"); }
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(); }