The ideas was to build a simple BinaryDoorLock with 8-Bits as input. With 8 Bits there are 256 possible combinations which can be switched on with the input switches. Only one combination opens the BinaryDoorLock by setting the output pin high.
You can test this project on its WOKWI:
https://wokwi.com/projects/359387860730498049
# | Input | Output |
---|---|---|
0 | Bit_0 | Output |
1 | Bit_1 | |
2 | Bit_2 | |
3 | Bit_3 | |
4 | Bit_4 | |
5 | Bit_5 | |
6 | Bit_6 | |
7 | Bit_7 |