@JumJum
There is also the sigma - delta -API :
http://esp-idf.readthedocs.io/en/latest/api/sigmadelta.html
This might be easier to implement Rather than the led API:
http://esp-idf.readthedocs.io/en/latest/api/ledc.html
@Wilberforce started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
@JumJum
There is also the sigma - delta -API :
http://esp-idf.readthedocs.io/en/latest/api/sigmadelta.html
This might be easier to implement Rather than the led API:
http://esp-idf.readthedocs.io/en/latest/api/ledc.html