I'm getting an error when I verify my code. I have copied from the book. I get "lcdcSetup was not declared in this scope. Below is the code. I'm lost could someone point out what is wrong?
// the number of the LED pin
const int ledPin = 16; // 16 corresponds to GPOI16
// setting PMW properties
const int freq = 5000;
const int ledChannel = 0;
const int resolution = 8;
void setup() {
// configure LED PMW functionitites
ledcSetup(ledChannel, freq, resolution);
// attach channel to the GPIO to be connected
ledcAttachPin(ledPin, ledChanne);
}
void loop() {
// increase the LED brightness
for(int dutyCycle = 0; dutyCycle <= 255; dutyCycle++){
// changing the LED brightness with PMW
ledWrite(ledChannel, dutyCycle);
delay(15);
}
// decress the LED brightness
for(int dutyCycle = 0; dutyCycle >= 255; dutyCycle--){
// changing the LED brightness with PMW
ledWrite(ledChannel, dutyCycle);
delay(15);
}
}
