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:d5ee6d175050, committed 2009-11-28
- Comitter:
- utaani
- Date:
- Sat Nov 28 14:34:31 2009 +0000
- Commit message:
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 |
diff -r 000000000000 -r d5ee6d175050 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Sat Nov 28 14:34:31 2009 +0000
@@ -0,0 +1,19 @@
+#include "mbed.h"
+
+PwmOut led1(LED1);
+PwmOut led2(LED2);
+
+int main() {
+ while (1) {
+ for (float p = 0.01f; p < 0.99f; p += 0.01f) {
+ led1 = p;
+ led2 = p;
+ wait(0.01);
+ }
+ for (float p = 0.99f; p > 0.01f; p -= 0.01f) {
+ led1 = p;
+ led2 = p;
+ wait(0.01);
+ }
+ }
+}
\ No newline at end of file
diff -r 000000000000 -r d5ee6d175050 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sat Nov 28 14:34:31 2009 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/32af5db564d4