[Tiny Tapeout Puzzles](https://tinytapeout.com/digital_design/) Set a code for your precious safe! **Controls** * Switch 2 is used to reset the safe. * Switch 8 is used to set your code (ON = set, OFF = locked) * Switches 3 to 5 are used to set the code. * The push button is used to enter your code. | SW | Function| |---------|---------| | 1 | N/A | | 2 | Reset | | 3 | Code 0 | | 4 | Code 1 | | 5 | Code 2 | | 6 | N/A | | 7 | N/A | | 8 | Set Code| ### To begin Press the green button in the top left of the pane to begin the simulation. Set your desired code using Switches 3 to 5. Once you've done so, toggle Switch 8 to ON then back OFF--the safe is now set! Turn ON Switch 2, and press the push button. The red LED labeled "Locked" should turn on and the seven segment display should show "L" (for locked). Next turn OFF Switch 2 to begin entering codes.
Next State Logic
Logic for Setting Code