Gast
#61586
Hi,
ich bin momentan dabei für mein Graphik-Display diverse routinen zu
schreiben. Ich hänge nun an einer Print_String routine. Die print_char
klappt prima, nun versuche ich diese mit print_string aufzurufen und
ein charakter nach dem anderen zu übergeben. Klappt jedoch leider
nicht. Das Display giebt nur eine "8" aus.
Den wichtigsten code hier: (den gesammten im dateianhang)
void print_char (int c)
{
int i;
for(i=0; i<5; i++)
{
send_data(Font5x7[((c - 0x20) * 5) + i]);
current_line ++;
}
send_data(0x00);
current_line ++;
}
void print_string(int *text)
{
int i;
for(i=0; i<5; i++)
{
print_char(text[i]);
}
}
[...]
char text[32];
[...]
text[0] ="Hallo";
set_pos(1,0);
print_string(text);
Villeicht hat jemand ne Idee und lust mir zu helfen. Danke!