Hallo,
Ich möchte eine float Variable über die Funktion printf() über die serielle Schnittstelle ausgeben, wie macht man das??
Code:printf("temp= %f",kurven_temp[0]);
//routine für printf
int uart_putchar (char c)
{
if (c == '\n')
{
uart_putchar('\r');
}
loop_until_bit_is_set(UCSRA, UDRE);
UDR = c;
return(0);
}
Wenn ich es so mache, bekomme ich nur ein '?'!
Soll ich es in einen String umwandeln, wenn ja wie?