Hall sensor Timing Check Power Surply

Dependencies:   mbed

Fork of Nucleo_Hall_Set by akiyoshi oguro

main.cpp

Committer:
oguro
Date:
2017-03-20
Revision:
1:5636e2520744
Parent:
0:f8b3b7c6c71b

File content as of revision 1:5636e2520744:

#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);
unsigned int U;
unsigned int V;
unsigned int W;

int main() {
    pc.baud(128000);
    
    while(1) {
        myled = !myled;
        
        U=H1; V=H2; W=H3;

        pc.printf("%d,%d,%d \r" ,U,V,W);
     
    }
}