-->
Page 1 of 1

High frequency PWM

PostPosted: Thu Sep 22, 2016 12:54 pm
by mbostic
I would like to make a waterproof ultrasonic sensor at 40khz. Is ESP8266 pwm capable of outputing 40khz?
Using analogWriteFreq and analogWrite gives incorrect frequency if I set it to 40khz. And why can't I use pwm.h interface? I get this error when compiling: undefined reference to pwm_init