void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}
output S (sum)
output C (carry)
input_a:IN
input_a:OUT
input_not_a:IN
input_not_a:OUT
input_b:IN
input_b:OUT
input_not_b:IN
input_not_b:OUT
gate_and_0:A
gate_and_0:B
gate_and_0:OUT
gate_and_1:A
gate_and_1:B
gate_and_1:OUT
gate_and_2:A
gate_and_2:B
gate_and_2:OUT
gate_or_0:A
gate_or_0:B
gate_or_0:OUT
gate_or_1:A
gate_or_1:B
gate_or_1:OUT
output_S:IN
output_S:OUT
output_C:IN
output_C:OUT
sw1:1a
sw1:2a
sw1:3a
sw1:4a
sw1:5a
sw1:6a
sw1:7a
sw1:8a
sw1:8b
sw1:7b
sw1:6b
sw1:5b
sw1:4b
sw1:3b
sw1:2b
sw1:1b
pwr1:VCC
led1:A
led1:C
pwr2:GND
led2:A
led2:C
pwr3:GND
r1:1
r1:2
pwr4:GND
r2:1
r2:2
input a
input b
The logic of this design has been created automatically using https://github.com/maehw/wokwi-lookup-table-generator with input https://github.com/maehw/wokwi-lookup-table-generator/blob/main/2bit_half_adder.logic.json