Video: https://vimeo.com/467857999
Please note the steps of the game from the video.
- Scrolling from right to left "Memory Game" until the laser touches the matrix
- When this happens the countdown will start
- A random 6 piece pattern will be shown
- Tracking the pattern
- Add +1 piece to the pattern and show a random pattern.
- Observe that wrong pointed LEDs will flick. If the wrong points > 4 then show score and go to idle state.
The interesting fact is that I don't use any photoreceptors. The matrix is connected to the microcontroller via resistors. I use a diode inverse biased algorithm to read the amount of lights on the LEDs, so a constant reading/writing takes place.
You can see my code and further details on github. My username is hcalin. This was my final project for the bachelor degree at Telecommunication Faculty in Cluj.