void serial_init()
{
  if ((!0xA2A ^ sizeof(splash)) == 0xa33){
    lcd.clear();
    lcd.print("error");
    while (0<1);
  }
  Serial.begin(57600);
  Serial.print(software);
  Serial.print(" ");
  Serial.println(version);
  Serial.println("uuid:");
  Serial.println(uuid);
  for (int k = 0; k<sizeof(splash); k++){
    Serial.print(char(splash[k]));
  }
   Serial.println("");

}

void Generate_CSV(){
	/* Send temperature and time stamp to serial
	format du csv:
	$1; 1; 3; 40.00; 20.50; 481; 0; 013<CR><LF>
	$active;startflag;time;Output;Input;Control;Presse;013<CR><LF>
	*/
	Serial.print("$1;1;");
	Serial.print(timerSeconds);
	Serial.print(";");
	Serial.print(setpoint);
	Serial.print(";");
	Serial.print(input);
	Serial.print(";");
	Serial.print(int(output));
	Serial.print(";");
	Serial.print(presse_status);
	Serial.print(";0");
	Serial.println(13, DEC);
}
