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
Fork of hackspace_awesomeness by
Revision 5:80b4f48cd3db, committed 2014-07-12
- Comitter:
- divyastra
- Date:
- Sat Jul 12 15:22:02 2014 +0000
- Parent:
- 4:c4dbac2f3e48
- Commit message:
- Included debug terminal outputs
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sat Jul 12 15:08:16 2014 +0000
+++ b/main.cpp Sat Jul 12 15:22:02 2014 +0000
@@ -11,19 +11,22 @@
bluepwm.period_ms(10);
-// printf("pwm set to %.2f %%\n", mypwm.read() * 100);
-
+
while(1) {
for (i=0; i<11; i++) {
redpwm.pulsewidth_ms(i);
+ printf("redpwm set to %.2f %%\n", redpwm.read() * 100);
+
wait(0.1);
}
for (i=0; i<11; i++) {
greenpwm.pulsewidth_ms(i);
+ printf("greenpwm set to %.2f %%\n", greenpwm.read() * 100);
wait(0.1);
}
for (i=0; i<11; i++) {
bluepwm.pulsewidth_ms(i);
+ printf("bluepwm set to %.2f %%\n", bluepwm.read() * 100);
wait(0.1);
}
}
