ederelk
Newbie level 4
hello everybody, im new . this forum has been helping me a lot lately. this is my problem, im trying to display floating point on the lcd i have interfaced with my PIC18F4550 in proteus usin this code
void main(){
har buf[15];
lcd_init(); // initialization of lcd
Lcd_Cmd(_LCD_CLEAR);
sprintf(buf, "%12e", 1.156);
Lcd_Out(1,1,buf); // display float number from array to lcd*/
}
it compiles fine but in the proteus simulation it does no work it gives me a lot of error masseges.please help me!
---------- Post added at 21:34 ---------- Previous post was at 21:31 ----------
this is the code
void main(){
char buf[15];
lcd_init(); // initialization of lcd
Lcd_Cmd(_LCD_CLEAR);
sprintf(buf, "%12e", 1.156);
Lcd_Out(1,1,buf); // display float number from array to lcd*/
}
void main(){
har buf[15];
lcd_init(); // initialization of lcd
Lcd_Cmd(_LCD_CLEAR);
sprintf(buf, "%12e", 1.156);
Lcd_Out(1,1,buf); // display float number from array to lcd*/
}
it compiles fine but in the proteus simulation it does no work it gives me a lot of error masseges.please help me!
---------- Post added at 21:34 ---------- Previous post was at 21:31 ----------
this is the code
void main(){
char buf[15];
lcd_init(); // initialization of lcd
Lcd_Cmd(_LCD_CLEAR);
sprintf(buf, "%12e", 1.156);
Lcd_Out(1,1,buf); // display float number from array to lcd*/
}