Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FastPWM HIDScope MODSERIAL QEI mbed
Diff: main.cpp
- Revision:
- 1:d6acc3c6261a
- Parent:
- 0:50c494034326
- Child:
- 2:840f7aa50e55
--- a/main.cpp Mon Sep 24 14:48:19 2018 +0000 +++ b/main.cpp Tue Sep 25 12:09:35 2018 +0000 @@ -18,12 +18,9 @@ FastPWM motor1_pwm(D5); FastPWM motor2_pwm(D6); -int frequency_pwm = 1000; // 1 kHz PWM -motor1_pwm.period(1.0f/frequency_pwm); //T=1/f - int main(void) { - + motor1_pwm.period_ms(60); // period is 60 ms while(true){