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.
Diff: main.cpp
- Branch:
- x
- Revision:
- 9:a28c7df007df
- Parent:
- 8:4067bdad9327
diff -r 4067bdad9327 -r a28c7df007df main.cpp
--- a/main.cpp Sun Oct 25 17:03:27 2020 +0000
+++ b/main.cpp Sun Oct 25 17:17:20 2020 +0000
@@ -1,17 +1,11 @@
#include "mbed.h"
-//
-// test led et liaison serie
-// GR 2020
-// Universite Paris-Saclay - IUT Cachan
-//
-//
Serial pc(USBTX, USBRX);
DigitalOut led(LED1);
int main()
{
- pc.printf("Press '1' to turn LED1 ON, '0' to turn it OFF\r\n");
+ pc.printf("Press '1' to turn LED1 ON, '0' to turn it OFF\n");
led=1;
while(1) {
char c = pc.getc(); // Read hyperterminal