I currently have a simple TCP server running on the ESP, and when it receives a command command, it runs a for loop to fade smoothly to the required brightness level.
However, I would like to avoid the blocking nature of that loop and hence would like suggestions for alternatives!
Would it be alright to call attach a ticker function that is called at 5ms intervals to perform the fading?