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

1 Expert Approved Answer
Step: 1 Unlock

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... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Operating System Questions!