Easy code selection
The upper 4 logic sources are to set up the code using Xor gates.
The next four shall match for green lights.
The lower six logic sources are undesired numbers sorted out by means of OR gates. If any of them is on the red light will go on and the green shuts off or wouldn't come on.
Very nice and easy.
Let's see if I can add smart sequential input....
Till then you mix the positions of the buttons below and in the middle and have a fine and very small tiny little Code Lock.
If you want a 5 digit code just add one Xor gate and you are done...
Enjoy
πΊππβππβ¨ππππ·ππΈπ·ππβ¨ππ«π βοΈπ½π