{
"version": 1,
"author": "Dzakwan Zodi Ismail ",
"editor": "wokwi",
"parts": [
{
"type": "board-st-nucleo-c031c6",
"id": "nucleo",
"top": -66.37,
"left": 56.62,
"attrs": {}
},
{
"type": "wokwi-pushbutton",
"id": "btn2",
"top": -89.8,
"left": -124.8,
"attrs": { "color": "yellow", "xray": "1", "bounce": "0" }
},
{ "type": "wokwi-vcc", "id": "vcc1", "top": -220.04, "left": 19.2, "attrs": {} },
{ "type": "wokwi-slide-switch", "id": "sw1", "top": 90.8, "left": -102.5, "attrs": {} },
{
"type": "wokwi-resistor",
"id": "r1",
"top": 110.4,
"left": -240.55,
"rotate": 90,
"attrs": { "value": "1000" }
},
{ "type": "wokwi-rgb-led", "id": "rgb1", "top": 61.6, "left": 346.7, "attrs": {} },
{
"type": "wokwi-resistor",
"id": "r2",
"top": 100.8,
"left": -48.55,
"rotate": 90,
"attrs": { "value": "1000" }
},
{ "type": "wokwi-gnd", "id": "gnd1", "top": 432, "left": 9, "attrs": {} }
],
"connections": [
[ "$serialMonitor:TX", "nucleo:PA3", "", [] ],
[ "$serialMonitor:RX", "nucleo:PA2", "", [] ],
[ "rgb1:G", "nucleo:PB0.1", "green", [ "v0" ] ],
[ "rgb1:R", "nucleo:PB1", "red", [ "v288", "h-278.4", "v-19.2" ] ],
[ "vcc1:VCC", "nucleo:5V.1", "red", [ "v0" ] ],
[ "btn2:2.r", "vcc1:VCC", "red", [ "h86.6", "v-95.8" ] ],
[ "r2:2", "nucleo:PA0", "violet", [ "h28.8", "v-39.6", "h105.6", "v57.6", "h19.2", "v76.8" ] ],
[ "sw1:3", "r2:2", "violet", [ "v0" ] ],
[ "nucleo:GND.2", "gnd1:GND", "black", [ "h0" ] ],
[ "sw1:2", "gnd1:GND", "black", [ "v278.4", "h105.7", "v28.8" ] ],
[ "r1:2", "rgb1:COM", "red", [ "h0", "v373.2", "h547.2" ] ],
[ "r1:1", "nucleo:PA1", "magenta", [ "h57.6", "v172.8" ] ],
[ "r2:1", "vcc1:VCC", "limegreen", [ "h48", "v-19.2" ] ],
[ "btn2:1.r", "r1:1", "orange", [ "v-115.2", "h-95.8", "v278.4" ] ]
],
"dependencies": {}
}Loading
st-nucleo-c031c6
st-nucleo-c031c6