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.
Revision 0:5fe57ec4001e, committed 2013-08-21
- Comitter:
- gcarmonar
- Date:
- Wed Aug 21 15:06:57 2013 +0000
- Commit message:
- pwm using a for cycle;
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
| mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Wed Aug 21 15:06:57 2013 +0000
@@ -0,0 +1,12 @@
+#include "mbed.h"
+
+PwmOut myled(LED1);
+
+int main() {
+ while(1) {
+ for (float i = 0; i <= 1.0; i = i + 0.1){
+ myled = i;
+ wait(0.1);
+ }
+ }
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed Aug 21 15:06:57 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/9c8f0e3462fb \ No newline at end of file