olikraus / u8glib

Arduino Monochrom Graphics Library for LCDs and OLEDs
https://github.com/olikraus/u8glib/wiki
Other
1.24k stars 313 forks source link

Printing sensor data for avr #451

Open TechGuy254 opened 7 years ago

TechGuy254 commented 7 years ago

Hi am looking for a command to print sensor data. u8g_DrawStr() only seems to print strings.

Thanks

olikraus commented 7 years ago

You should use standard c functions like sprint or itoa. There is also a build in function: / v = value, d = number of digits / const char *u8g_u8toa(uint8_t v, uint8_t d)