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

Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode - Raspberry Pi Forums

class MPU6050 has no member named begin

missing filename after '-o'