3. Find the output of the following program for Osts450 ms: int led = 9; int brightness = 40; int fadeAmount = -10; void
-
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
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!