U8glib - How to display leading zeroes?


hi,

i'm using oled display u8glib.

let's have variable defined float
x = 3.52;

i want display number on oled display 1 leading zero, how can u8glib?
i mean display number should this: "03.52"

can give me hint, please?
thank you!

code: [select]

if (val < 10) lcd.print('0');
lcd.print(val);


Arduino Forum > Using Arduino > Displays > U8glib - How to display leading zeroes?


arduino

Comments

Popular posts from this blog

Valutazione Template - Joomla! Forum - community, help and support

SD Datastring Convention

First use of Arduino Uno : avrdude error on Blink uploading