Question: Level 2 : Write a program that displays the following color sequence on the RGB LED ( D 9 - D 1 1 ) Red

Level2: Write a program that displays the following color sequence on the RGB LED (D9-D11)Red, Green, Blue. The speed at which the color changes is controlled by Rotation dial A0 on theboard. As you turn the dial the speed of the RGB changes. When the dial is at zero the RGBspeed is the slowest, when the dial is at max the speed is at max.Level 3: Use the rotation sensor to cycle through the colours of the rainbow. (ROYGBP)depending on the value of the rotation sensor.(exL 0-150= red from 150-300= Orange). Lookup the RGB value for each colour and use analogWrite() to get the proper colours.Level 4: Create a code that asks the user to input a pattern of colours using R, G or B. Thendisplay that sequence of colours. Ex: "Please input any combination of R, G or B letters". Youcan assume that they will not use other letters. Reference 1 Reference 2Extra challenge: Add other colours to the choices available to the user; C = cyan, M =Magenta, Y = Yellow, W = White. Additionally create two functions. The first performs errorchecking of the user's input to validate the letter. The second function is used to display thedesired colour, using the user's input as a parameter

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!