Its done. thanks for your help. finally!
can anyone explain the error in this code?
C:\Users\Nick Savage\Downloads\Arduino smart farm\2.Projects\CODDE_KS0567\7.3Motor\7.3Motor.ino: In function 'void setup()':
C:\Users\Nick Savage\Downloads\Arduino smart farm\2.Projects\CODDE_KS0567\7.3Motor\7.3Motor.ino:9:3: error: 'ledcSetup' was not declared in this scope
9 | ledcSetup(1, 1200, 8);//Set frequency of LEDC Channel 1 to 1200, PWM resolution to 8, so duty cycle = 256
| ^~~~~~~~~
C:\Users\Nick Savage\Downloads\Arduino smart farm\2.Projects\CODDE_KS0567\7.3Motor\7.3Motor.ino:10:3: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'?
10 | ledcAttachPin(MotorPin1, 1); //Bound LEDC Channel 1 to the specified left motor pin gpio19 to output.
| ^~~~~~~~~~~~~
| ledcAttach
exit status 1
Compilation error: 'ledcSetup' was not declared in this scope
This file is probably missing an LED Controls #include<> file, and the error shows when line 9 tries to use ledcSetup, and again on line 10 with ledcAttachPin.
ledcSetup' was not declared in this scope
Have you selected the correct board in the IDE?
a7