Dependencies:   mbed

Fork of VLC_manchester_decoder by Jelle Raes

Revision:
1:b89430efe68e
Parent:
0:dad9d23791db
Child:
2:487a58ce256c
--- a/manchester.cpp	Wed May 09 15:09:57 2018 +0000
+++ b/manchester.cpp	Mon May 14 09:18:22 2018 +0000
@@ -91,3 +91,12 @@
     }
     return direction;
 }
+bool manchester::vlcDetected(){
+    int i = 0;
+    while(i<DELAY){
+        if(signal.read() != 0){
+            i = 0; 
+        }
+        wait_us(100)   
+    }
+}