Controlling PWM: Using analogWrite
Exercise 2:
Go back to the original program. Now add a second LED to the circuit.
Set the second LED to work as the opposite amount of brightness to the first. For example if the first is set at 55, the second should be set at 200. Hint: led2Brightness = (255 - led1Brightness)
Content Rating
Is this a good/useful/informative piece of content to include in the project? Have your say!
You must login before you can post a comment. .