/
Exercise 2
Exercise 2
Task
Create a program such that the LED brightness gradually increases from 0 to 255, and then goes abruptly to 0.
Further, modify your program above to decrease the brightness gradually from 255 to 0 instead of an abrupt change.
Hints
Use pin 11. If you are already having the LED connected to pin 11, you need not change any connection. Why can’t you use pin 13?
You will have to use a for loop. Lookup for in https://www.arduino.cc/en/Reference
The delay should be around 5-10 milliseconds.
, multiple selections available,
Related content
Exercise 2 Solution
Exercise 2 Solution
More like this
Exercise 3 Solution
Exercise 3 Solution
More like this
Exercise 1 Solution
Exercise 1 Solution
More like this
Digital Output : Getting Started
Digital Output : Getting Started
More like this
Exercise 3
Exercise 3
More like this
Exercise 1
Exercise 1
More like this