a pacemaker

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers pacing.cpp Source File

pacing.cpp

00001 #include "pacing.h"
00002 
00003 PinName atrial_pin;
00004 PinName ventricle_pin;
00005 
00006 void assign_pins(PinName pin_a , PinName pin_v){
00007     atrial_pin = pin_a;
00008     ventricle_pin = pin_v;
00009     }
00010 
00011 void write_to_pin(PinName pin , int to_write){
00012         DigitalOut(pin , to_write);
00013     }
00014