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.
Fork of Lab2_PWM_UART by
Revision 4:4afd80834e5c, committed 2015-10-31
- Comitter:
- BrentLei
- Date:
- Sat Oct 31 02:42:41 2015 +0000
- Parent:
- 3:5f3417989cab
- Commit message:
- nRF51
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Jul 29 07:08:34 2015 +0000
+++ b/main.cpp Sat Oct 31 02:42:41 2015 +0000
@@ -12,7 +12,6 @@
{
int bt_flag = 0;
- printf("Hello PWM!\r\n");
// Set PWM
led.write(brightness);
@@ -31,7 +30,6 @@
brightness = (brightness>1.0)?0.0:brightness;
brightness = (brightness<0.0)?1.0:brightness;
led.write(brightness);
- printf("Brightness = %.1f\r\n", 1.0-brightness);
}
wait(0.2); // 200 ms
}
