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.
Diff: main.cpp
- Revision:
- 0:db44472dcd7d
diff -r 000000000000 -r db44472dcd7d main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Wed Nov 05 11:24:36 2014 +0000
@@ -0,0 +1,18 @@
+#include "mbed.h"
+#include "rtos.h"
+#define OSCODE
+
+BusOut leds(P1_28, P1_29, P1_31, P2_2, P2_3, P2_4, P2_5, P2_6);
+AnalogIn in(P0_25);
+
+int main() {
+ leds = 0x0F;
+
+ while (true)
+ {
+
+ printf("Toggle\n");
+ leds = ~(leds);
+ wait(1);
+ }
+}