Hello
I am working on transmission beetwen 2313 USART .
For the moment, i send a message from a PC, and i try to show it on a lcd.
I receive the string of character but i can't display it...
Declaration of the string
volatile char buf_rx [8];
Construction of ths string (recption)
if (debut==1 && rx!='D') { /// a faire : si >6 alors reset lcd_puts("D"); if (rx!='F') { buf_rx[pos]=rx; pos++; putchr(rx); printstr_p(PSTR("=data\n")); } else { if (pos==6) { rx_buff_complete=1; UCSRB &= ~_BV(RXCIE); } } }
It's ok ...
But the following is no good : i can't display rx_buf, nor lcd, nor serial :
lcd_puts(buf_rx); printstr_p(PSTR("BUFRX=")); printstr_p(PSTR(buf_rx)); printstr_p(PSTR("\n"));
Compiling say
"warning, passing argument of "lcd_puts"make pointer from integer without a cast.
And :" invalid initializer".
I'm a not a crack with pointer.
If you could help me, thanks.
:)