Question: Now it is time to modify pwmled 2 . Your code will need to accomplish the following: Set duty for PWM 1 to 9 0
Now it is time to modify pwmled Your code will need to accomplish the following:
Set duty for PWM to
Set duty for PWM to
Set the sleep function so it sleeps for second.
Set duty for PWM to
Set duty for PWM to
Create your code in a loop.
Note that it will be difficult to determine the PWM values from the LEDs due to the differences between the yellow and green LEDs. The yellow LED is much brighter than the green LED. The green LED at appears as though it is turned off. Also, the PWMsetDuty function does not take percentages. Thus the function PWMsetDuty pwm will not work. Instead you need to calculate the value of the period
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
