Skip to main content

Gauge Widget

👁 Display

The Gauge widget renders a circular arc that fills proportionally between a min and max value. Ideal for battery level, CPU load, fill percentage, or any bounded metric.

Default size: 2 × 2 grid cells


Configuration

PropertyTypeDefaultDescription
minnumber0Value at 0% arc fill
maxnumber100Value at 100% arc fill
unitstring``Unit label shown in the center
colorhex color#3B82F6Arc fill color
DevicedeviceThe device to read from
PinV0V255The virtual pin to display
LabelstringWidget label

Firmware example

void loop() {
Vwire.run();

int batteryPercent = analogRead(BATT_PIN) * 100 / 1023;
Vwire.virtualSend(V0, batteryPercent); // 0–100

delay(5000);
}

Common setups

Use caseminmaxunitcolor
Battery %0100%#10B981
Temperature-2080°C#F59E0B
Humidity0100%#3B82F6
CPU load0100%#EF4444
Pressure9001100hPa#8B5CF6

Gauge vs Analog Gauge

FeatureGaugeAnalog Gauge
StyleCircular arcNeedle / dial
Color zonesSingle colorUp to N colored zones
Visual feedbackFill amountNeedle position
Best forPercentage, levelSignal strength, speed, temperature