Page 1 of 1

pwm check

Posted: Wed Dec 21, 2016 1:29 pm
by kamesh
hi,

How to start with PWM in esp32 using ardunio ide. I have tried by using analogwrite() in ardunio but it throws an error like analogwrite is not in this scope. Am i missed any thing. pls give suggestion on this. Am i missed any header?



int ledPin = 35; // LED connected to digital pin 35


void loop() {

for (int fadeValue = 0 ; fadeValue <= 255; fadeValue += 5) {

analogWrite(ledPin, fadeValue);

delay(30);
}

}

Re: pwm check

Posted: Wed Dec 21, 2016 10:30 pm
by onehorse