ESP8266 Developer Zone The Official ESP8266 Forum 2017-09-13T21:39:15+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=6365 2017-09-13T21:39:15+08:00 2017-09-13T21:39:15+08:00 https://bbs.espressif.com:443/viewtopic.php?t=6365&p=15745#p15745 <![CDATA[Re: Documented pwm_init parameters , unclear period]]> Statistics: Posted by ddze7374 — Wed Sep 13, 2017 9:39 pm


]]>
2017-09-12T15:57:09+08:00 2017-09-12T15:57:09+08:00 https://bbs.espressif.com:443/viewtopic.php?t=6365&p=15717#p15717 <![CDATA[Re: Documented pwm_init parameters , unclear period]]>
That's why if you set it to 1000, you get 1ms -> 1kHz

Statistics: Posted by Guest — Tue Sep 12, 2017 3:57 pm


]]>
2017-09-11T18:01:59+08:00 2017-09-11T18:01:59+08:00 https://bbs.espressif.com:443/viewtopic.php?t=6365&p=15707#p15707 <![CDATA[Documented pwm_init parameters , unclear period]]>
Documentation of the function pwm_init claims that the parameter uint32 period is in fact PWM period. But actually when I set it to 1000 , I got the PWM output of ~1000 Hz which is the frequency. Period would mean 1/1000 -> 0.001s (1ms).

Am I missing something or it is a wrong description?

Statistics: Posted by ddze7374 — Mon Sep 11, 2017 6:01 pm


]]>