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.
Dependencies: mbed
Diff: main.cpp
- Revision:
 - 0:26b5ae934955
 - Child:
 - 1:5231f1b42c85
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon May 04 08:27:04 2020 +0000
@@ -0,0 +1,14 @@
+#include "mbed.h"
+
+DigitalOut myled(LED2); // la variable "myled" désigne la led connectée à la broche D8 configurée en sortie
+
+int main(void)
+{
+    while(1) {
+        myled=!myled;   // on inverse l'état de la led
+        wait(0.2);        // on attend 2 secondes
+    }
+}
+
+
+