I have a Doit ESP devkit v1 board controlled by a 400-line sketch. The compilation is perfect and without errors using IDE 1.8.15 or 2.2.1 installed on an old 64-bit machine. The SAME sketch gives numerous errors when compiling in IDE 2.3.2. When installing old IDEs 1.8.15 or 2.2.1 on another PC, the compilation also gives an error. In short, I can only compile the sketch in old IDEs already installed on a computer a long time ago. Can you help me?
Welcome to the forum
Start by checking the versions of the board files and libraries that the working installation uses against the versions on the installations that fail
Please post the full error message from a failed compilation copied from the IDE with the button provided and posted here in code tags to make it easy to read and copy for examination
you could be having problems with the upgrade from ESP32 core 2.0.x (installed on your old machines) to 3.0 (installed on your new machine)
to check installed version select Tools>Board then Board manager enter esp32 look under esp32 by Espressif, e.g. this shows that 3.0.1 is installed
I thank everyone for their attention. A friend discovered that the problem was in the PWMOutESP32 library, which uses 2 commands that no longer exist in the ESP32 API. They have been changed in the new version. I'm using a new function to control PWM output.