AND gate
The output is 1 only when every input is 1.
Truth table
| A | B | Y |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
Pins
2–8 inputs on the left (select it and use + / − to change), one output on the right.
How to use it
“Both must be true” conditions, masking bits to 0, the half-adder carry C = A·B.
Usage example
Two switches go into the AND gate's inputs and the output drives an LED. The LED lights only when both A and B are 1 (both are on here).
Common mistakes
An unconnected input counts as 0, so a single floating pin forces an AND gate's output to 0.