Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Computer Architecture Fundamentals And Principles Of Computer Design

Authors: Joseph D. Dumas II

2nd Edition

1032097337, 978-1032097336

More Books

Students also viewed these Operating System questions

Question

What did Tolman mean by intervening variable?

Answered: 1 week ago