The whole thing should be realized with a shift register, because I want to drive many leds so.
I have found this program (including video) for Arduinocontroller like the Uno here -> timodenk.com/blog/shiftregister-pwm-library/
It is about synchronizing the interrupts of the timer with the frequency of the ESP. However, I am not so deep in the programming that I could realize this alone for the ESP8266, so I hope here in the forum are a few people who can help me with this program.