Design a simple system.
Expectations:
midterm/
subdirectory of your repoNote: do not put videos in your repository, the file size is too large.
Inspired by the “digital menorah” product.
Description: LEDs simulate flickering candles.
Each LED should have a distinct flicker pattern.
Initially, there should be no lit candles. A candle is “lit” by pressing a button. Each button-press increases the number of lit candles. A reset button turns off all the candles.
Submodules:
Description: Use the four U/D/L/R buttons to enter numbers 1-10 and display the value on the LEDs. The button encoding is as follows:
| U | 1 | |
| R | 2 | |
| D | 3 | |
| L | 4 | |
| U | R | 5 |
| R | D | 6 |
| D | L | 7 |
| L | U | 8 |
| U | D | 9 |
| L | R | 10 |
| C | 0 (rst) |
Submodules:
Description: Use the four buttons U/D/L/R to implement a key code. Initially all the LEDs are off. If the correct six-button sequence is input within a six-second time window, then all the LEDs light up. The center button resets the lock.
Submodules: