![](/media/cache/profiles/DSC_0020.jpg.50x50_q85.jpg)
a pacemaker
pacing.cpp@3:334300ac49e5, 2016-10-26 (annotated)
- Committer:
- kohlerba
- Date:
- Wed Oct 26 18:20:43 2016 +0000
- Revision:
- 3:334300ac49e5
- Parent:
- 1:446bd28a1f19
Changed the functions and modules.;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kohlerba | 0:9e97accb2a4c | 1 | #include "pacing.h" |
kohlerba | 0:9e97accb2a4c | 2 | |
kohlerba | 3:334300ac49e5 | 3 | PinName atrial_pin; |
kohlerba | 3:334300ac49e5 | 4 | PinName ventricle_pin; |
kohlerba | 3:334300ac49e5 | 5 | |
kohlerba | 3:334300ac49e5 | 6 | void assign_pins(PinName pin_a , PinName pin_v){ |
kohlerba | 3:334300ac49e5 | 7 | atrial_pin = pin_a; |
kohlerba | 3:334300ac49e5 | 8 | ventricle_pin = pin_v; |
kohlerba | 3:334300ac49e5 | 9 | } |
kohlerba | 3:334300ac49e5 | 10 | |
kohlerba | 1:446bd28a1f19 | 11 | void write_to_pin(PinName pin , int to_write){ |
kohlerba | 1:446bd28a1f19 | 12 | DigitalOut(pin , to_write); |
kohlerba | 0:9e97accb2a4c | 13 | } |
kohlerba | 0:9e97accb2a4c | 14 |