Smooth Led fade.

Hello there.

In my sketch i use a webserver for user to change values in a led. When the LED is 255 and user change it to 100 or 200 , i would like to implement a smooth passage from one value to another. But without using the delay!...

i would like to use a function that takes two values Desired and Old , and do the work for me, is there any solution about it Without using the Delay!

is there any solution about it Without using the Delay!

Sure. There is a blink without delay example that you need to study, without delay.

Thanks Paul basically i need something like this

value = 128+127cos(2PI/periode*time);

but all the examples around it dont give me the desired solution: fade from given value1 to given value2 with an Artificial 1 second delay

but all the examples around it dont give me the desired solution: fade from given value1 to given value2 with an Artificial 1 second delay

Have a look at the blink WITHOUT delay example, to see how to create the illusion of a delay whilst still managing to do other stuff.