@iamgeorge @leocavagnis
Hi both - I did a load more reading on lv_label_set_text_fmt and discovered that in the lv_conf.h you can change the value of
#define LV_SPRINTF_USE_FLOAT 0
from 0 to 1 and in theory this will mean you can use %f in your sprintf formatting in lv_label_set_text_fmt command, however, it does not seem to work. I read around a bit more and this might be something to do with the Arduino IDE as the only other mention of this where someone managed to fix this specific problem was by moving away from the IDE and programming in a different environment. It's almost like it's not processing the lv_conf.h file, or at least the functionality of that line - or something is overriding it. For the moment I have to convert everything into integers to fake the float as above.
I even tried putting lv_conf.h in my IDE and including it in the normal way but that had no effect either.
Can either of you shed any further light on this one?