snprintf() with variable width
Hi all,
I tried to write a wrapper for snprintf():
#include <Arduino.h>
#define LCD_cols 16
void display_float(float var, uint8_t size_number, uint8_t size_fraction, bool zeros, bool brackets, bool sign) {
char s[LCD_cols + 1];
if (size_fraction > 0) {...