Answered step by step
Verified Expert Solution
Question
1 Approved Answer
follow the prompt. must be done in c programing and be compatible with thw arduino Lab 8 Problems 1. Rotating LEDs a. The name of
follow the prompt. must be done in c programing and be compatible with thw arduino
Lab 8 Problems 1. Rotating LEDs a. The name of this program will be lab 8pl b. Change the position of the LED switches to the RED LEDS (pins 11, 9, 6, and 3) c. Write a program that lights one of the four RED LEDs. Each time a change occurs in the rotary encoder state, the lighted LED shifts position. If the encoder is moved to the right, then the lighted LED moves to the right (i.e., the current lighted LED is turned off and the LED to the right of that is turned on). If the encoder is moved to the left, then the lighted LED moves to the left. If the lighted LED is at the end, then the movement "wraps around", i.e., a circular rotation. Add some music. Choose four notes, e.g., the four notes below, each one corresponding to one of the red LEDs. d. #de fine NOTE E4 330 #de fine NOTE G4 392 #de fine NOTE A4 440 #de fine NOTE B4 494 Run the program. Show the results to the TA. Each student upload the source file to Canvas. TA Signature Date (0/1/2/3 points) Lab 8 Problems 1. Rotating LEDs a. The name of this program will be lab 8pl b. Change the position of the LED switches to the RED LEDS (pins 11, 9, 6, and 3) c. Write a program that lights one of the four RED LEDs. Each time a change occurs in the rotary encoder state, the lighted LED shifts position. If the encoder is moved to the right, then the lighted LED moves to the right (i.e., the current lighted LED is turned off and the LED to the right of that is turned on). If the encoder is moved to the left, then the lighted LED moves to the left. If the lighted LED is at the end, then the movement "wraps around", i.e., a circular rotation. Add some music. Choose four notes, e.g., the four notes below, each one corresponding to one of the red LEDs. d. #de fine NOTE E4 330 #de fine NOTE G4 392 #de fine NOTE A4 440 #de fine NOTE B4 494 Run the program. Show the results to the TA. Each student upload the source file to Canvas. TA Signature Date (0/1/2/3 points)Step by Step Solution
There are 3 Steps involved in it
Step: 1
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