I am starting a new project with Wemos D1 mini, trying to generate PWM.
When trying to use the “ledcSetup” command, I get the error:
‘ledcSetup’ was not declared in this scope
IDE: VisualStudio Code with platformIO
the platform,ini is:
[env:d1]
platform = espressif8266
board = d1
framework = arduino
Should I include any library?
I was sure this command, as well as the ledcAttachPin are part of the 8266 family.