wokwi-led-bar-graph Reference
10-segment LED Bar Graph.
Pin names
| Name | Description |
|---|---|
| An | Anode (positive pin) of LED n (n = 1…10) |
| Cn | Cathode (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
| Name | Description | Default value |
|---|---|---|
| color | The 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
| Result | Attrs |
|---|---|
{ "color": "yellow" } | |
{ "color": "#9EFF3C" } | |
{ "color": "GYR"} | |
{ "color": "BCYR"} |
Simulator examples
- Arduino LED Graph Bar - Move the potentiometer knob to control the LEDs
- Raspberry Pi Pico Binary Counter