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:
lv_gauge_set_range(gauge1,0,8000)
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.
The only problem is the scale colour. At 0 it is white but by 6 it is grey.
What parameter I need to change to keep it white ?
Also how do I change the text size ?
Sorry for digging up this old topic, but it suits my question perfectly. How would you format the scale in v8 and with lv_meter instead of lv_gauge? I need every number divided by 100.
I’m trying to replicate an RPM counter for our old caravan. Didn’t test it on an ESP32 with circular GC9A01 display yet, but LVGL looks very promising (and I’m almost finished):