virtualmario / u8glib

Automatically exported from code.google.com/p/u8glib
Other
0 stars 0 forks source link

How to print integers/floats/numeric values - AVR #260

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,
I am able to print values in Arduino IDE using "print" - u8g.print(value);

How can I do the same in AVR Studio 4.18?
Configuration:
Atmega32 + ST7565P in AVR Studio 4.18 SP3 - I can print strings, shapes, .., 
but no values.

Thank you in advance
Peter

Original issue reported on code.google.com by ped...@zoznam.sk on 18 May 2014 at 12:55

GoogleCodeExporter commented 9 years ago
You need to convert them to strings manually. 
Usually this is done with system functions like sprintf or itoa

Original comment by olikr...@gmail.com on 18 May 2014 at 2:03

GoogleCodeExporter commented 9 years ago

Original comment by olikr...@gmail.com on 28 Jun 2014 at 9:10