Test du terminal en entrée (affichage, debug ...)

Dependencies:   mbed

main.cpp

Committer:
gr91
Date:
2021-06-06
Revision:
1:7f51926123a1
Parent:
0:551a0996336c
Child:
2:3f6417fe959d

File content as of revision 1:7f51926123a1:

#include "mbed.h"

Serial pc(SERIAL_TX, SERIAL_RX);


int main()
{
    int i=0;
    pc.printf("Test eu terminal \n\r");  // Write terminal
    while(1) {
        pc.printf("compteur = %D \n\r",i++);  // Write terminal
        wait(1);
    }
}