I want to create an engine rpm gauge using lv_arduino.
I’ve manage to create it by using gauge object and set range by:
This is working with a range of 0 to 8000 rpm and I can make the needle move ok.
The trouble is the text in the scale label is show 0, 1000, 2000, 3000 and so on. The text is really small and I don’t really need all the 000s. I just want it to show 0,1,2,3,4…
I’ve tried setting to range to 0 to 8 and scale the input but then the needle doesn’t move smoothly because there is not enough resolution between the steps.
How can I make the text in the label different than the standard text ? That is from 0, 1000, 2000… to 0, 1, 2
I’ve tried to modify the lv_gauge.c code by making a copy of it first then adding a prefix so to separate between the two files but it won’t compile.