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