test pour buffer

main.cpp

Committer:
gr91
Date:
2020-10-25
Revision:
7:37ea12f2b18f
Parent:
6:a58f18b765cd
Child:
8:23fca4edc6b9

File content as of revision 7:37ea12f2b18f:

#include "mbed.h"
//
// test led
// GR 2020
// Universite Paris-Saclay - IUT Cachan
//
//
#define TEMPO 0.5
Serial pc(USBTX, USBRX);
DigitalOut led(PA_5);  //LED1

int main()
{
    pc.printf("LED clignotante\r\n");
    led=1;
    while(1) {
        led = 0; // OFF
        wait(TEMPO);
        led = 1; // ON
        wait(TEMPO);
    }
}