Question: main.c file & program files for game on Dragon12 board Memory Pattern Objectives: In this design project you are required to design a C program
Memory Pattern Objectives: In this design project you are required to design a C program on the Dragon12 board to perform a pattern recognition memory game similar to the game Simon. Input and Output: LCD displays prompts for guiding the user, using either one or two lines as necessary. The displayed message remains on until specifically changed in a later step Four pushbuttons (SW2-SW5) are used for setup and game-play. When pressing pushbuttons to duplicate a sequence of LED flashes, note that SW2 lights up LED PB3, SW3 lights up LED PB2, SW4 lights up LED PB, and SW5 lights up LED PB0. Pressing a pushbutton always causes the specified action to occur immediately, without waiting for the pushbutton to be released. Multiple simultaneous pushbutton presses should result in only one recorded the first one. LEDs are used for displaying patterns and showing current state and pushbutton press. LEDs PB3-PB0 are used to display the pattern. When a pushbutton is pressed, the associated LED should light up until the pushbutton is released. Keypad is used for game level entry. Multiple simultaneous key presses should result in only one recorded key, the first one 7 segment digit (leftmost) displays the level continuously after a level has been selected. Other digits stay off continuously Project Procedure: Initial conditions at start of execution: All toggle switches are offopen/up. All LEDs Pattern Game and digits off. The LCD screen should start with the text "Memory Press SW2" Select the level: When SW2 is pressed, the LCD screen should then say "Enter level and press SW3". The level (from 1 to 5) should be entered on the keypad and displayed on the leftmost seven segment display. Do not accept any other values from the keypad. Then press SW3 . Once the level is selected, the LCD screen should read "Level:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
