LCD_graphics — Gauge
The gauge graphic displays one value on a circular dial.
The gGauge is a class and contains, apart from the constructor, two functions: dDefine and draw.
Temporary minimum and maximum values are noticed with a green and red dot. All parameters are integers with an optional unit.
On the same screen, an histogram and a gauge display
Parameters are very close to those of Histogram.
A gauge is declared with the gClock class:
The gGauge class has two functions:
myGauge.define(&myScreen, 160, 120, 100, -100, 10);
The new library uses integers only to save memory (no need for the 6KB real library!) and processing power.
The graphic is updated only if the value passed is different from the previous one. This allows smoother graphics and faster drawing.