Which is totally correct. ldecSetup()
is a function from Arduino-ESP32. You have an ESP8266 based board, hence you are using Arduino-ESP8266 where that function does not exist. Just use the regular analogWrite()
function as explained in multiple tutorials.
1 Like