LED widget
What it does
Compact indicator surface. 0 = off; non-zero = on (or brightness-scaled when PWM mode is on).
Pins
- Semantics: Single virtual pin (V1..V127)
- Reads from one virtual pin, V1..V127.
- Default size: 2 x 2
Config fields
| Field | Type | Default | Effect |
|---|---|---|---|
color | color | — | Color when on. |
offColor | color | — | Color when off. |
pwmMode | boolean | false | Scales brightness with 0..255 payload. |
blinkOnNonzero | boolean | false | Blinks while the pin value is non-zero. |
showPin | boolean | true | Renders the V-pin badge on the tile. |
Typical use
firmware.ino
void loop() { int value = digitalRead(STATUS_PIN) ? 255 : 0; Blynk.virtualWrite(V1, value);}iOS app
Yes — iOS LED shares the same 0/1 and PWM brightness semantics.