Write a BARE-METAL C code for the following . This project is about Simon's say Arduino simple
Question:
Write a BARE-METAL C code for the following .
This project is about Simon's say Arduino simple electronic memory game: the user has to repeat a growing sequence of colors. The sequence is displayed by lighting LEDs. Each color also has a Cit’s own sound.
In every round, the game will repeat the sequence, and then wait for the user to play again the sequence by pressing the buttons according to the color sequence. If the user repeated the sequence correctly, the game will continue a sound, add a new color at the end of the sequence, and move to the next level.
The game continues until the user make a mistake. Then game over sound is played, and the game restarts.
DON'T USE ARDUINO PIN NUMBER INITIALIZE FROM THE SCRATCH (BARE METAL )
Arduino Pin Device
PORTB Red LED
PORTB Green LED
PORTB Blue LED
PORTB Yellow LED
PORTB Buzzer
PORTD Red Buttons
Computer Architecture Fundamentals And Principles Of Computer Design
ISBN: 9781032097336
2nd Edition
Authors: Joseph D. Dumas II