0

Hi,

Hi Everybody,

since a few days I´m trying to get a LCD running on my RX63T. Works fine for any type of variable but not for “float” or “double”. In this case the controller runs to nowhere.
Piece of my code:

extern int8_t Buffer[];

extern uint32_t value; // = 0xABCDEF
extern double pi;         // = 3.141592

lcd_ddram_addr(FIRST_LINE,POS_0);
lcd_putc(‘0’);
lcd_putc(‘x’);
snprintf(Buffer,sizeof(Buffer),”%X”,value);
write_lcd(lcd_data, Buffer);
lcd_ddram_addr(SECOND_LINE,POS_0);
snprintf(Buffer,sizeof(Buffer),”%i”,value);
write_lcd(lcd_data, Buffer);
/*
lcd_ddram_addr(THIRD_LINE,POS_0);
snprintf(Buffer,sizeof(Buffer),”%0.6f”,pi);
write_lcd(lcd_data, Buffer);

*/

I´m working with e2 studio (Version: 5.1.0.022) and GNURX v16.01(ELF), so I hope that anybody can explain to me what I´m doign wrong.

Thank you in advance
Alex

Grigore Dobra answered