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: TextLCD mbed-rtos mbed
Fork of mbed_PM by
main.cpp
- Committer:
- aconnors
- Date:
- 2015-12-01
- Revision:
- 2:926bb514dcae
- Parent:
- 0:093bb69f95f0
- Child:
- 3:0e4473c63935
File content as of revision 2:926bb514dcae:
#include "mbed.h"
#include "rtos.h"
#include "TextLCD.h"
Serial keyboard(USBTX, USBRX);
int PacemakerA, PacemakerV = 0;
DigitalOut Apace(), Vpace();
DigitalIn Aget(), Vget();
int PacemakerModeGuard = 0;
void PacemakerSense() {
}
void PacemakerKeyboard() {
while(1) {
char c = keyboard.getc();
switch(c) {
case 'n':
case 'N':
PacemakerModeGuard = 0;
break;
case 's':
case 'S':
PacemakerModeGuard = 1;
break;
case 'e':
case 'E':
PacemakerModeGuard = 2;
break;
case 'm':
case 'M':
PacemakerModeGuard = 3;
break;
case 'a':
case 'A':
if(PacemakerModeGuard == 3) {
PacemakerA = 1;
Thread::wait(10);
PacemakerA = 0;
}
break;
case 'v':
case 'V':
}
}
}
void PacemakerDisplay() {
}
void PacemakerAlarm() {
}
void PacemakerLED() {
}
int main() {
}
