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:75ca8f5758b2
- Child:
- 1:7d73836cc7c6
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon May 04 08:12:44 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(1);        // on attend 2 secondes
+    }
+}
+
+
+