Skip to main content

wokwi-led-bar-graph Reference

10-segment LED Bar Graph.

Pin names

NameDescription
AnAnode (positive pin) of LED n (n = 1…10)
CnCathode (negative pin) of LED n (n = 1…10)

e.g. A1 is the anode of the top LED, and C1 is the cathode of the top LED.

Attributes

NameDescriptionDefault value
colorThe color of the LED body, or one of the special values "GYR" / "BCYR"*"red"

* GYR means Green-Yellow-Red. BCYR means Cyan-Blue-Yellow-Red

Examples

ResultAttrs
{ "color": "yellow" }
{ "color": "#9EFF3C" }
{ "color": "GYR"}
{ "color": "BCYR"}

Simulator examples