{
  "version": 1,
  "author": "Anonymous maker",
  "editor": "wokwi",
  "parts": [
    { "type": "wokwi-vcc", "id": "vcc1", "top": -143.24, "left": -163.2, "attrs": {} },
    { "type": "wokwi-gate-and-2", "id": "and1", "top": -86.67, "left": 50.13, "attrs": {} },
    { "type": "wokwi-gate-xor-2", "id": "xor1", "top": -29.4, "left": 91.68, "attrs": {} },
    { "type": "wokwi-gnd", "id": "gnd1", "top": 123.34, "left": 266.05, "attrs": {} },
    { "type": "wokwi-slide-switch", "id": "sw1", "top": -180.4, "left": -108.97, "attrs": {} },
    { "type": "wokwi-slide-switch", "id": "sw2", "top": -64.2, "left": -104.3, "attrs": {} },
    {
      "type": "wokwi-text",
      "id": "led3",
      "top": -215.2,
      "left": -101.73,
      "attrs": { "text": "Input 1" }
    },
    {
      "type": "wokwi-text",
      "id": "led4",
      "top": -89.4,
      "left": -112.77,
      "attrs": { "text": "Input 2" }
    },
    { "type": "wokwi-slide-switch", "id": "sw3", "top": 67.73, "left": -103.3, "attrs": {} },
    { "type": "wokwi-gate-and-2", "id": "and2", "top": -103.31, "left": 222.42, "attrs": {} },
    { "type": "wokwi-gate-xor-2", "id": "xor2", "top": -34.96, "left": 267.47, "attrs": {} },
    { "type": "wokwi-gate-xor-2", "id": "xor3", "top": -81.92, "left": 399.53, "attrs": {} },
    {
      "type": "wokwi-led",
      "id": "led1",
      "top": -51.51,
      "left": 361.01,
      "attrs": { "color": "red", "flip": "1", "label": "Output" }
    },
    {
      "type": "wokwi-led",
      "id": "led2",
      "top": -105.52,
      "left": 499.09,
      "attrs": { "color": "red", "flip": "1", "label": "Carry" }
    },
    { "type": "wokwi-gnd", "id": "gnd2", "top": -133.17, "left": -113.24, "attrs": {} },
    { "type": "wokwi-gnd", "id": "gnd3", "top": -18.15, "left": -102.83, "attrs": {} },
    { "type": "wokwi-gnd", "id": "gnd4", "top": 110.34, "left": -108.29, "attrs": {} },
    {
      "type": "wokwi-text",
      "id": "led5",
      "top": 39.69,
      "left": -137.31,
      "attrs": { "text": "Input 3 (carry)" }
    }
  ],
  "connections": [
    [ "and1:A", "xor1:A", "green", [ "h-41.51", "v48.85" ] ],
    [ "and1:B", "xor1:B", "green", [ "h0.49", "v54.85" ] ],
    [ "sw1:2", "vcc1:VCC", "red", [ "v0" ] ],
    [ "sw2:2", "vcc1:VCC", "red", [ "v49.58", "h-5.27" ] ],
    [ "sw1:3", "and1:A", "gold", [ "h21.75", "v34.83", "h111.85" ] ],
    [ "sw2:3", "and1:B", "gold", [ "v14.11", "h57.56", "v-42" ] ],
    [ "vcc1:VCC", "sw3:2", "red", [ "v264.49", "h58.93" ] ],
    [ "and2:A", "xor2:A", "green", [ "h-27.93", "v64.64" ] ],
    [ "and2:B", "xor2:B", "green", [ "h-10.43", "v65.85" ] ],
    [ "xor2:A", "sw3:3", "gold", [ "h-27.49", "v150.82", "h-317.22" ] ],
    [ "xor1:OUT", "xor2:B", "green", [ "v0" ] ],
    [ "and1:OUT", "xor3:A", "green", [ "v-59.56", "h20.37" ] ],
    [ "and2:OUT", "xor3:B", "green", [ "v0.01", "h36.11", "v26.82" ] ],
    [ "led1:A", "xor2:OUT", "green", [ "v0" ] ],
    [ "gnd1:GND", "led1:C", "black", [ "v-6.62", "h150.63", "v-126.23" ] ],
    [ "xor3:OUT", "led2:A", "green", [ "v0" ] ],
    [ "led1:C", "led2:C", "black", [ "v0.25", "h181.19", "v-54.26" ] ],
    [ "gnd4:GND", "sw3:1", "black", [ "v0" ] ],
    [ "gnd3:GND", "sw2:1", "black", [ "v0" ] ],
    [ "gnd2:GND", "sw1:1", "black", [ "v0" ] ]
  ],
  "dependencies": {}
}
Input 1
Input 2
Input 3 (carry)