ESP8266 also resets, this may be due to timer mismatch or any similar cause.
Also, while dimming the light at 60% and above the light dims, after some time it starts to flicker and eventually the esp resets.
If anyone has tried the same project and suffered or solved the same problem ,please suggest me how to fix it!
I am uploading my code where I have used Ticker library to dim a light bulb so you can understand my problem.