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:e91b7d5124df, committed 2019-10-25
- Comitter:
- tanofgennaro
- Date:
- Fri Oct 25 03:01:23 2019 +0000
- Commit message:
- comit inicial;
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 e91b7d5124df main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Oct 25 03:01:23 2019 +0000
@@ -0,0 +1,20 @@
+#include "mbed.h"
+
+DigitalIn gpo(PTD7);
+DigitalOut led(LED_RED);
+DigitalOut OUT(PTC12);
+
+int main()
+{
+    while (true) {
+        if (gpo==1)   
+        {
+        led = 0;
+        OUT = 1; // toggle led
+        }else
+        {
+        led = 1;
+        OUT = 0;  
+        }
+    }
+}
\ No newline at end of file
diff -r 000000000000 -r e91b7d5124df mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Oct 25 03:01:23 2019 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400 \ No newline at end of file