3. Find the output of the following program for Osts450 ms: int led = 9; int brightness = 40; int fadeAmount = -10; void

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

3. Find the output of the following program for Osts450 ms: int led = 9; int brightness = 40; int fadeAmount = -10; void

Post by answerhappygod »

3 Find The Output Of The Following Program For Osts450 Ms Int Led 9 Int Brightness 40 Int Fadeamount 10 Void 1
3 Find The Output Of The Following Program For Osts450 Ms Int Led 9 Int Brightness 40 Int Fadeamount 10 Void 1 (16.59 KiB) Viewed 24 times
3. Find the output of the following program for Osts450 ms: int led = 9; int brightness = 40; int fadeAmount = -10; void setup() { pinMode(led, OUTPUT); } void loop() { analogWrite(led, brightness); brightness = brightness + fadeAmount; if (brightness <= 0 | brightness >=90) { fadeAmount = -fadeAmount; 1 delay(30); }
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply