Question: Write a program that will control the brightness of 2 LEDs. The LEDs are connected to pins 3 and 5 of the Arduino When the
Write a program that will control the brightness of 2 LEDs. The LEDs are connected to pins 3 and 5 of the Arduino When the program starts, the first LED (pin 3) should be dim, while the second LED (pin 5) should be at its madmum brightness. As the program runs, the first LEDs brightness should increase until it reaches its maximum brightness level while the second LED brightness should decrease until it becomes dim. The code is shown below. Please select the appropriate code that will execute in the way explained above. 1/code begin here void setup() () VO Ledin - 3 Ledpis for (int - Vic v) analogwrite(ledPini. analogeite delay(100)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
