skyseb Posted April 5, 2013 Report Share Posted April 5, 2013 hello, i have a problem with the IDE arduino, because, i can't print a float on the LCD.i use Arduino -102, for ZPUINO. when i want to print a float in the lcd, the value stay frozen at "0. ". have you any idea about this problem? thanks Link to comment Share on other sites More sharing options...
Jack Gassett Posted April 5, 2013 Report Share Posted April 5, 2013 hmmm, can you post your code? It might give us some more information to go from. Jack. Link to comment Share on other sites More sharing options...
alvieboy Posted April 5, 2013 Report Share Posted April 5, 2013 We don't quite support floating point.... but should work. What was the binary sketch size ? If you do a Serial.println() of the floating point, does it work ? Link to comment Share on other sites More sharing options...
skyseb Posted April 8, 2013 Author Report Share Posted April 8, 2013 for example when i write: float Val;lcd.print(Val); the program doesn't launch and the lcd stay frozen at "0." Link to comment Share on other sites More sharing options...
alvieboy Posted April 8, 2013 Report Share Posted April 8, 2013 Ok let me do some tests over here. Link to comment Share on other sites More sharing options...
skyseb Posted April 8, 2013 Author Report Share Posted April 8, 2013 okay thanks alvie Link to comment Share on other sites More sharing options...
alvieboy Posted April 8, 2013 Report Share Posted April 8, 2013 There seems to be some issue with floating point indeed. Looking at it right now. Link to comment Share on other sites More sharing options...
skyseb Posted April 9, 2013 Author Report Share Posted April 9, 2013 yes the point seems crash the arduino programm, because when i define a float, the program about the arduino crash and the lcd print "0.". Link to comment Share on other sites More sharing options...
alvieboy Posted April 10, 2013 Report Share Posted April 10, 2013 See this: http://forum.gadgetfactory.net/index.php?/topic/1597-floating-point-math-and-rand-help/?p=10443 Let me know if it works. Alvie Link to comment Share on other sites More sharing options...
skyseb Posted April 10, 2013 Author Report Share Posted April 10, 2013 i have changed the files, but there are always this problem Link to comment Share on other sites More sharing options...
alvieboy Posted April 10, 2013 Report Share Posted April 10, 2013 skyseb: I need you to send me your sketch, if you can, please. By emal: alvieboy@alvie.com if you can, locate the temporary build folder and zip it and send it to me. Are you using Windows, Mac or Linux? Alvie Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.