-->
Page 1 of 1

Using the official API PWM?

PostPosted: Fri Apr 17, 2015 10:51 am
by draco
I took a look at the documentation at http://bbs.espressif.com/download/file.php?id=253 to see about making PWM work... I don't see any place in the API for specifying what pin to modulate? What am I missing? :)

Re: Using the official API PWM?

PostPosted: Fri Apr 17, 2015 2:07 pm
by AcmeUK
This guy says that you have control over ports 12,13 and 15 for PWM. See his blog http://tech.scargill.net/esp8266-pwm-on-one-output/ it could keep you entertained for hours :D .

Re: Using the official API PWM?

PostPosted: Tue Apr 21, 2015 6:06 am
by draco
Thanks. I checked it out; it looks like this doesn't play nicely with the ESP8266 Arduino port. :( I should have guessed that, or someone would have mentioned it before, I'm sure!

I gave it a quick try, but I didn't invest too much time into getting it to work. I was under the incorrect assumption that the PWM implementation used here would be in hardware; that's not true, it appears to use timers to "manually" cycle the GPIOs within the PWM library.

Re: Using the official API PWM?

PostPosted: Tue Apr 21, 2015 6:32 am
by reaper7
I waiting for PWM implementation too...

I see that Sming project (by Anacod) have PWM:
https://github.com/anakod/Sming/blob/ma ... Core/PWM.h