reeeeeeeeeeeeeee

Dependencies:   MotionSensor mbed

Fork of Assignment2_ver3 by weeb grammers

main.cpp

Committer:
weebgrammers
Date:
2016-11-29
Revision:
9:751e39d24c39
Parent:
7:6dc42e1a2a81

File content as of revision 9:751e39d24c39:

#include "mbed.h"
#include "PaceHeart.h"
#include "Hardware.h"
#include "motion.h"
//DigitalOut output_pin_A(LED1);

PaceHeart* Pacer = new PaceHeart;

DigitalOut led(LED1);
Serial pc(USBTX, USBRX);
void setup() {
    pc.baud(57600);
}
    

int main() {
    setup();
    initialize_motion ();
    while(1){
        
    Pacer->pace_V();
    //motionThread.start(motion_thread);
    motion_thread(*Pacer);
    //Check_serial(pc,*Pacer);
    }
    //Pacer-> pace_A();
}