ESP8266 Developer ZoneThe Official ESP8266 Forum2017-09-13T21:39:15+08:00https://bbs.espressif.com:443/feed.php?f=7&t=63652017-09-13T21:39:15+08:002017-09-13T21:39:15+08:00https://bbs.espressif.com:443/viewtopic.php?t=6365&p=15745#p15745Statistics: Posted by ddze7374 — Wed Sep 13, 2017 9:39 pm
]]>2017-09-12T15:57:09+08:002017-09-12T15:57:09+08:00https://bbs.espressif.com:443/viewtopic.php?t=6365&p=15717#p15717 That's why if you set it to 1000, you get 1ms -> 1kHz
]]>2017-09-11T18:01:59+08:002017-09-11T18:01:59+08:00https://bbs.espressif.com:443/viewtopic.php?t=6365&p=15707#p15707 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?