Carlos Quintana / Mbed 2 deprecated frdm_gpioprueba1

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
Otakutronics
Date:
Sat Dec 15 22:40:06 2018 +0000
Parent:
10:956e173b7e3f
Commit message:
boton (PTE25) que enciende o apaga un led (LED_RED)

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sat Dec 15 22:34:26 2018 +0000
+++ b/main.cpp	Sat Dec 15 22:40:06 2018 +0000
@@ -6,7 +6,7 @@
 int main(){
     while (1){
         if (!btn){
-            while (!btn){ wait(0.1f);}
+            while (!btn){ wait(0.05f);}
             led = !led;       
         }  
     }