parcours accompagner / Mbed 2 deprecated Exo3

Dependencies:   mbed

Committer:
th30
Date:
Tue Dec 14 10:21:33 2021 +0000
Revision:
0:f42e0f2f3375
ppp; ;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
th30 0:f42e0f2f3375 1 #include "mbed.h"
th30 0:f42e0f2f3375 2 Serial pc(USBTX,USBRX);
th30 0:f42e0f2f3375 3 int i , j;
th30 0:f42e0f2f3375 4 int main(){
th30 0:f42e0f2f3375 5 while(1){
th30 0:f42e0f2f3375 6 for(i=0;i<10;i+=1){
th30 0:f42e0f2f3375 7 pc.printf("%d\n\r",i);
th30 0:f42e0f2f3375 8 wait(0.5);
th30 0:f42e0f2f3375 9 }
th30 0:f42e0f2f3375 10 for(j=10;j>0;j-=1){
th30 0:f42e0f2f3375 11 pc.printf("%d\n\r",j);
th30 0:f42e0f2f3375 12 wait(0.5);
th30 0:f42e0f2f3375 13 }
th30 0:f42e0f2f3375 14 }
th30 0:f42e0f2f3375 15 }
th30 0:f42e0f2f3375 16