Usada bajo permiso del autor tony63

Dependents:   IR-NEC

Fork of Pulse1 by Gustavo Ramirez

Files at this revision

API Documentation at this revision

Comitter:
PabloViana
Date:
Sat Nov 07 22:07:03 2015 +0000
Parent:
1:48651f86a80c
Commit message:
v1;

Changed in this revision

Pulse1.cpp Show annotated file Show diff for this revision Revisions of this file
Pulse1.h Show annotated file Show diff for this revision Revisions of this file
--- a/Pulse1.cpp	Thu Nov 07 03:34:00 2013 +0000
+++ b/Pulse1.cpp	Sat Nov 07 22:07:03 2015 +0000
@@ -57,10 +57,13 @@
 int PulseInOut::read_low_us()   {
     pulsetime.reset();
     io.input();
-    while (io == 0) {
+    Temp1.start();
+    while (io == 0 ) {
     }
+    
     while (io == 1) {
     }
+    
     pulsetime.start();
     while (io == 0) {
     }
--- a/Pulse1.h	Thu Nov 07 03:34:00 2013 +0000
+++ b/Pulse1.h	Sat Nov 07 22:07:03 2015 +0000
@@ -48,6 +48,8 @@
         int startval;
         Timer pulsetime, runtime;
         DigitalInOut io;
+        Timer Temp1;
+        int flag1;
 };
 
 #endif
\ No newline at end of file