Question: Level 2 : Write a program that displays the following color sequence on the RGB LED ( D 9 - D 1 1 ) Red
Level: Write a program that displays the following color sequence on the RGB LED DDRed Green, Blue. The speed at which the color changes is controlled by Rotation dial A 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 : Use the rotation sensor to cycle through the colours of the rainbow. ROYGBPdepending on the value of the rotation sensorexL red from Orange Lookup the RGB value for each colour and use analogWrite to get the proper colours.Level : 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 Reference Extra 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
