Widgets / directory

Toggle widget

What it does

Sliding on/off switch for binary state. Same payload contract as Button in switch mode but with a toggle affordance.

Pins

  • Semantics: Single virtual pin (V1..V127)
  • Writes to one virtual pin, V1..V127.
  • Default size: 2 x 1

Config fields

FieldTypeDefaultEffect
onValuetext1Payload sent when flipped on.
offValuetext0Payload sent when flipped off.
onLabeltextONLabel shown on the on side.
offLabeltextOFFLabel shown on the off side.
colorcolorAccent for the active state.
showPinbooleantrueRenders the V-pin badge on the tile.

Typical use

firmware.ino
BLYNK_WRITE(V2) {  bool on = param.asInt() != 0;  digitalWrite(LED_PIN, on);}

iOS app

Yes — matches iOS toggle affordance and scalar payload.

See also

Related widgets