So if I want to fade in, would I use:

For duty = 0 to 255
.
.
.


??