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:0024ab6b9624
- Child:
- 1:4f62fc36c30d
diff -r 000000000000 -r 0024ab6b9624 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Fri Oct 12 12:41:36 2012 +0000
@@ -0,0 +1,16 @@
+#include "mbed.h"
+
+int main()
+{
+ DigitalOut gpo(PTB8);
+ DigitalOut led(LED_RED);
+
+ while(1) {
+ gpo = 1;
+ led=1; // Off
+ wait(2);
+ gpo = 0;
+ led=0; // on
+ wait(2);
+ }
+}
\ No newline at end of file