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: mbed Queue mbed-rtos FXOS8700Q
Fork of Pacemaker by
main.cpp
- Committer:
- trane3
- Date:
- 2016-11-15
- Revision:
- 10:35b259e70c9a
- Parent:
- 9:b48423a135d8
- Child:
- 18:aef2f75f216b
- Child:
- 19:d58e1e1a9a24
File content as of revision 10:35b259e70c9a:
#pragma once
#include "mbed.h"
#include "chamberData.h"
#include "genData.h"
#include "pulse.h"
#include "hardware.h"
#include "interface.h"
#include "voor.h"
#include "sense.h"
int main(){
hardware* io = new hardware();
genData* generalData = new genData();
chamberData* atrium = new chamberData(io->getSerial(),'a');
chamberData* ventricle = new chamberData(io->getSerial(), 'v');
pulse* ventPulse = new pulse(ventricle,io);
pulse* atrPulse = new pulse(atrium,io);
interface a(io->getSerial() , ventPulse , generalData, atrium , ventricle);
//if
a.startScreen();
delete ventricle; //code never reaches here, since we're stuck in the while loops of the pacing, user interface, etc.
delete atrium;
delete ventPulse;
delete io;
return 0;
}
