Clemence Merle Saltel / Mbed 2 deprecated 1-Prise_en_main

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
clemencems
Date:
Wed Sep 02 15:00:39 2020 +0000
Parent:
24:7f14b70fc9ef
Commit message:
" version 2 - commande led Grove sur D3 "

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Apr 08 11:03:25 2019 +0100
+++ b/main.cpp	Wed Sep 02 15:00:39 2020 +0000
@@ -1,11 +1,11 @@
 #include "mbed.h"
 
-DigitalOut myled(LED1);
+DigitalOut myled(D3);
 
 int main() {
     while(1) {
-        myled = 1;
-        wait(0.2);
+        myled = 1,5;
+        wait(0.5);
         myled = 0;
         wait(0.2);
     }