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?
That's why if you set it to 1000, you get 1ms -> 1kHz
Who is online
Users browsing this forum: No registered users and 3 guests
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
We also have a RTOS version and a MESH version too!
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!