Hello guys I hope you are doing very well. I was doing the car robot project and the code throws me the variable error. Could you help me what is missing in the declaration
Im using esp8266
wifi_robot:51:3: error: ‘ledcSetup’ was not declared in this scope
51 | ledcSetup(pwmChannel, freq, resolution);
wifi_robot:54:3: error: ‘ledcAttachPin’ was not declared in this scope
54 | ledcAttachPin(enable1Pin, pwmChannel);
wifi_robot:58:3: error: ‘ledcWrite’ was not declared in this scope
58 | ledcWrite(pwmChannel, dutyCycle);
Make sure that you have an ESP32 board selected before compiling the code.
Does it work?
f I have the module selected correctly. In addition, I had already compiled other projects
From the printscreen you shared, I can see you have a Generic ESP8266 Module selected.
Go to Tools > Board and select an ESP32 board.