You can also use printf. Redirect the stream out of printf using something
like this:
LcdInit();
LcdCommand(LcdClear);
stdout = _H_USER; // redirect printf to LCD using _user_putc
printf("Hello World");
stdout = _H_USART; // back to usart if desired
//========================PrintfRedirection===============================
int _user_putc(char data){
// Called by printf if stdout has been redirected to _H_USER.
LcdPutChar(data);
}
Harold
{Quote hidden}>> Using C18 (Learning) (using an 18F252)
>>
>> How do I send a complete word "Hello" to an LCD using C18.
>>
>> I can send individual characters ok at this stage but do not know how
>> you setup C18 to send a whole word or sentence.
>
> The full version od C18 has a function named putrsXLCD that writes
> a string of characters to the LCD.
>
> putrsXLCD( "Hello");
>
> Regards,
>
> Bruce
>
http://www.rentron.com
>
>
> -