Skip to content

Blynk — write value to V-pin (blynk_write)

What it does: Sends a value to the selected virtual Blynk pin (V0 to V19).

blynk_write

Inputs

  • Field vpin: virtual pin number 0 to 19.
  • val: value to send (number/text).

Output

  • None (statement block).

When to use it

  • For sending telemetry or statuses to the Blynk dashboard.
  • To update widgets (Label, Gauge, Chart, ...).

Tips and pitfalls

  • Send only when changed or reasonably periodically to avoid congesting the connection.
  • After writing, let blynk_run run, otherwise the messages will not be sent smoothly.

Generated Python example

blynk.virtual_write(3, teplota)
utime.sleep_ms(25)