I noticed using sprintf increases the code size tremendously (~20kb or so).
Is there an alternative in chibios using less memory or pulling in fewer libs?
It is for OLED display.
Maybe I am missing something?
Thanks in advance
I have seen this kind of workaround in several places. I guess I have to use that?
if (value != pvalue) {
int i = value;
int i0 = i/10;
c[offset+2] = '0'+i-10*i0;
i = i0;
i0 = i/10;
c[offset+1] = '0'+i-10*i0;
i = i0;
i0 = i/10;
c[offset+0] = '0'+i-10*i0;
// Make sure there is a space between text and value
c[offset-1] = ' ';
pvalue = value;
}