Asked

Compilation Error With Doit ESP32 Dev Kit 1

Hello DJ,

I'm encountering a compilation error while following the tutorial to convert the ESP-32 into an EZ-B, approximately 10:49 into the video. The error seems to be related to the ESP32PWM.cpp file and involves several undeclared functions and incorrect event identifiers. Below is a screen capture of the error message:

User-inserted image

Here is the error message I'm receiving:

C:\Users\mstep\Documents\Arduino\EZ-ESP32\ESP32PWM.cpp: In destructor 'virtual ESP32PWM::~ESP32PWM()':
C:\Users\mstep\Documents\Arduino\EZ-ESP32\ESP32PWM.cpp:50:17: error: 'ledcDetachPin' was not declared in this scope; did you mean 'ledcDetach'?
   50 |                 ledcDetachPin(pin);
      |                 ^~~~~~~~~~~~~
      |                 ledcDetach

The error continues with similar issues, such as:

  • ledcSetup not being declared.
  • Incorrect event identifiers like SYSTEM_EVENT_WIFI_READY instead of WIFI_EVENT_WIFI_READY.
  • Ambiguous call of analogWrite.

It seems like there might be a mismatch in the function declarations or possibly an issue with the library versions being used. Could you provide any guidance on how to resolve these errors?

Thank you for your assistance!


ARC Pro

Upgrade to ARC Pro

Subscribe to ARC Pro, and your robot will become a canvas for your imagination, limited only by your creativity.

#9  

It works! I have "GetOffMyLawn".  Now to do something fun with it! DJ thank you!

User-inserted image