hi everybody,
we can all write anything to lcd with putc command.with putc command (" ") its simple to write betweeen quotes.but if i say char a[6]="hello" and
write lcd_putc(a) or lcd_putc('a') it doesnt write "hello".what do i have to do?
inservi
Joined: 13 May 2007 Posts: 128
Posted: Mon May 28, 2007 12:59 am
Hello,
You can use the printf() function:
Code:
char a[6] = "hello" ;
printf( lcd_putc, a ) ;
You can use printf() for formating a string to send to a function.
You will find all explanation and sample in the help.
That work with my CCS v4.038 and a PIC18F4685.
Best regards,
dro _________________ in médio virtus
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum