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.
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);
}
}