i wrote a function to pass strings through USARTs (why does mikroC not integrate a function like this?), as it done by many mikroC users:
Code: Select all
void Usart_putstr1(char* sBuffer){
unsigned char i;
for (i=0; sBuffer[i]; i++) {
if (sBuffer[i] == '\n')
Usart_write1(13); //return
else Usart_write1(sBuffer[i]);
}
}
Code: Select all
Usart_putstr1("This is how to save some RAM/n");
Bye
CG