Widgets / directory

Button widget

What it does

Momentary or toggle actuator that writes a single scalar to a virtual pin. The canvas renders live state; the board reacts through a BLYNK_WRITE handler.

Pins

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

Config fields

FieldTypeDefaultEffect
labeltextCaption shown on the button face.
modeselect (switch / push)switchToggle vs hold-to-press semantics.
onValuetext1Payload sent on press / turn-on.
offValuetext0Payload sent on release / turn-off.
onLabeltextONOptional caption when latched on.
offLabeltextOFFOptional caption when latched off.
colorcolorAccent for the active surface.
offColorcolorAccent for the off state.
showPinbooleantrueRenders the V-pin badge on the tile.

Typical use

firmware.ino
BLYNK_WRITE(V1) {  int v = param.asInt();  digitalWrite(RELAY_PIN, v);}

iOS app

Yes — iOS Plynx renders buttons with identical switch/push semantics (Plynx/Views/Project/Dashboard/Widgets/ButtonView.swift).

See also

Related widgets