View previous topic :: View next topic |
Author |
Message |
gaviao
Joined: 03 Apr 2007 Posts: 2
|
woh format carateres to see in lcd |
Posted: Tue Apr 03, 2007 2:06 pm |
|
|
i am using this code to read the adc value and print in the lcd and serial port, on the serial port the formatation is ok, but on the lcd i can't see the right numbers.
int32 temp;
temp = (int32) read_adc();
printf("Valor A/D S0 = %lu --> Temp0= %lu.%lu C \n\r ",temp, temp/10, temp%10); // its ok
printf(lcd_putc,"Temp0: %ld.%ld C",temp/10, temp%10); // wrong formatation??
i use the generic ccs driver for lcd
thank you |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
gaviao
Joined: 03 Apr 2007 Posts: 2
|
|
Posted: Wed Apr 04, 2007 8:06 am |
|
|
I find the problem, is in the lcd lib, in the method void lcd_putc( char c),
i have 2 lines comment :p
thank you, PCM programmer |
|
|
|