EspArduino - Ticker for pwm fading?
Posted: Fri Jan 08, 2016 9:45 pm
I would like to use my Esp-12 to fade some LED's. I have the hardware part up and running fine now, but am having some issues with the software side.
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?
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?