Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MotionSensor mbed
Fork of Assignment2_ver5 by
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 }
Generated on Wed Jul 13 2022 18:58:56 by
1.7.2
