How to add leading zeroes to a number in adafruit ssd1306 OLED

The old sprintf() is still used for that. The format would be "%05d".
The full format is explained here: https://www.cplusplus.com/reference/cstdio/printf/
Or you can get the length and then write zeroes in a for-loop.

[EDIT] Changed "%05s" to "%05d", oops, shame on me :woozy_face: