Hall sensor Timing Check Power Surply

Dependencies:   mbed

Fork of Nucleo_Hall_Set by akiyoshi oguro

Revision:
0:f8b3b7c6c71b
Child:
1:5636e2520744
diff -r 000000000000 -r f8b3b7c6c71b main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Mar 09 01:28:47 2017 +0000
@@ -0,0 +1,24 @@
+#include "mbed.h"
+
+DigitalOut myled(LED1);
+Serial pc(USBTX,USBRX);
+
+
+DigitalIn  H1(PA_15);
+DigitalIn  H2(PB_3);
+DigitalIn  H3(PB_10);
+
+AnalogOut Hout(PA_4);
+
+int main() {
+    pc.baud(128000);
+    
+    while(1) {
+        myled = !myled;
+        
+        U=H1; V=H2; W=H3;
+
+        pc.printf("%d,%d,%d \r" ,U,V,W);
+     
+    }
+}