Skip to main content

wokwi-led Reference

Standard 5mm LED.

Pin names#

NameDescription
AAnode (positive pin)
CCathode (negative pin)

Attributes#

NameDescriptionDefault value
colorThe color of the LED body"red"
lightColorThe color of the lightdepends on the color
labelText that appears below the led

Examples#

ResultAttrs
{ "color": "green" }
{ "color": "#FFFF00" }
{ "label": "Status" }
{ "color": "white"}
{ "color": "white", "lightColor": "orange"}

Simulator examples#

  • Blink - Arduino's standard Blink sketch