DJI M600 Pro esc working with PWM input

I was looking for a solution to use DJI M600 Pro escs with a regular PWM input from any FC.
I found a few topics about it like:


And

But it seemed to me, that nobody found an easy solution.
So I tried myself and just got it working.
Unfortunately I just created my account so O cannot reply to the previously mentioned topics… I think.

If someone is still interested, I think I am able to help.