weeb grammers / Mbed 2 deprecated Assignment2_ver6

Dependencies:   MotionSensor mbed

Fork of Assignment2_ver5 by weeb grammers

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "PaceHeart.h"
00003 #include "Hardware.h"
00004 #include "motion.h"
00005 //DigitalOut output_pin_A(LED1);
00006 
00007 PaceHeart* Pacer = new PaceHeart;
00008 
00009 DigitalOut led(LED1);
00010 Serial pc(USBTX, USBRX);
00011 void setup() {
00012     pc.baud(57600);
00013 }
00014     
00015 
00016 int main() {
00017     setup();
00018     initialize_motion ();
00019     while(1){
00020         
00021     Pacer->pace_V();
00022     //motionThread.start(motion_thread);
00023     motion_thread(*Pacer);
00024     //Check_serial(pc,*Pacer);
00025     }
00026     //Pacer-> pace_A();
00027 }