Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
I declare a pin as PwmOut MotorL_Pin(P2_5);
and in Main I have; MotorL_Pin.pulsewidth_us(10); MotorL_Pin=.5;
the pwm is at 50%, but the freq is 50hz. what did I miss to change the freq? How do I set it to say 10khz? Thanks Ringo