Added 1 AND gate and 1 NOT gate for testing. AND gate is IN0 and IN1 as input. OUT1 is output. NOT gate has IN2 as input. OUT2 is output.
check AND gate truth table. check NOT gat truth table
OUT1 and OUT2 drives LED
# | Input | Output | Bidirectional |
---|---|---|---|
0 | IN0 | OUT0 | |
1 | IN1 | OUT1 | |
2 | IN2 | ||
3 | |||
4 | |||
5 | |||
6 | |||
7 |