pwm check

kamesh
Posts: 35
Joined: Sat Aug 06, 2016 5:14 am

pwm check

Postby kamesh » Wed Dec 21, 2016 1:29 pm

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);
}

}

onehorse
Posts: 70
Joined: Mon Feb 15, 2016 1:35 am

Re: pwm check

Postby onehorse » Wed Dec 21, 2016 10:30 pm


Who is online

Users browsing this forum: Baidu [Spider] and 68 guests