Compile Errors with Arduino Library for CrowBot BOLT

Many of the lessons result in compile errors. For example with Lesson3.Dreamy_Dance_Move using the library code I get the following errors:
Z:\Projects\Robots\Elecrow\CrowBot-BOLT\Software\Arduino\Arduino code\Lesson3.Dreamy_Dance_Move\3.Dreamy_Dance_Move\3.Dreamy_Dance_Move.ino: In function 'void setup()':
Z:\Projects\Robots\Elecrow\CrowBot-BOLT\Software\Arduino\Arduino code\Lesson3.Dreamy_Dance_Move\3.Dreamy_Dance_Move\3.Dreamy_Dance_Move.ino:6:5: error: 'ledcSetup' was not declared in this scope
6 | ledcSetup(i, 5000, 8); //ledc settings (channel, frequency, bits)
| ^~~~~
Z:\Projects\Robots\Elecrow\CrowBot-BOLT\Software\Arduino\Arduino code\Lesson3.Dreamy_Dance_Move\3.Dreamy_Dance_Move\3.Dreamy_Dance_Move.ino:7:5: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'?
7 | ledcAttachPin(i, i); //The motor pin is bound to the corresponding channel
| ^~~~~
| ledcAttach
exit status 1

Compilation error: 'ledcSetup' was not declared in this scope


What is the solution for this?

Comments

  • Hi dsrc12,
    Please make sure to install esp32 version 2.0.14 or 2.0.15 as installing other versions will cause errors

Sign In or Register to comment.