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
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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
C code for Simons say game on an Arduino using the specified pin configuration include include include Define macros for colors define REDLED 1 PB0 de...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started