Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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

Spatial Database Systems Design Implementation And Project Management

Authors: Albert K.W. Yeung, G. Brent Hall

1st Edition

1402053932, 978-1402053931

More Books

Students also viewed these Databases questions