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: mbed
Diff: main.cpp
- Revision:
- 6:ab02d7bb40cb
- Parent:
- 5:cb200e69a544
- Child:
- 7:89a6d9004710
--- a/main.cpp Tue Feb 17 19:23:35 2015 +0000
+++ b/main.cpp Tue Feb 17 19:58:06 2015 +0000
@@ -55,7 +55,7 @@
//Timer used for duration
t1.reset();
t1.start();
- PWM1.period(1/freq); // set PWM period to 10 ms
+ PWM1.period(1/freq); // set PWM period to user specified
PWM1=0.5; // set duty cycle to 50%
while(t1.read_ms() < dur){
//WAIT