parcours accompagner / Mbed 2 deprecated Exo3

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
th30
Date:
Tue Dec 14 10:21:33 2021 +0000
Commit message:
ppp; ;

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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Dec 14 10:21:33 2021 +0000
@@ -0,0 +1,16 @@
+#include "mbed.h"
+Serial pc(USBTX,USBRX);
+int i , j;
+int main(){
+    while(1){
+        for(i=0;i<10;i+=1){
+            pc.printf("%d\n\r",i);
+            wait(0.5);
+        }
+        for(j=10;j>0;j-=1){
+            pc.printf("%d\n\r",j);
+            wait(0.5);
+        }
+    }
+}
+    
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Dec 14 10:21:33 2021 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file