Skip to main content

Value Display Widget

👁 Display

The Value Display widget shows the latest value of a virtual pin in large, readable text. Add a prefix or suffix to give the value context (e.g. °C, %, kg).

Default size: 2 × 2 grid cells


Configuration

PropertyTypeDefaultDescription
prefixstring``Text shown before the value
suffixstring``Text shown after the value (unit label)
fontSizenumber32Font size in pixels
DevicedeviceThe device to read from
PinV0V255The virtual pin to display
LabelstringWidget label

Firmware example

void loop() {
Vwire.run();

float temp = readTemperature();
float hum = readHumidity();
int pressure = readPressure();

Vwire.virtualSend(V0, temp); // displayed as "23.5 °C"
Vwire.virtualSend(V1, hum); // displayed as "61 %"
Vwire.virtualSend(V2, pressure); // displayed as "1013 hPa"

delay(2000);
}

Formatting tips

ValueprefixsuffixDisplayed as
23.5``°C23.5 °C
61``%61%
1013`` hPa1013 hPa
0.98$``$0.98
12V``V12

Display tips

  • Use fontSize: 48 for a single large metric in a 2×2 cell.
  • Use fontSize: 24 when combining multiple values in a smaller cell.
  • For values with many decimal places, round on the device: Vwire.virtualSend(V0, round(temp * 10) / 10.0);