Bradley Kohler
/
FRDM_Pacemaker
a pacemaker
main.cpp
- Committer:
- kohlerba
- Date:
- 2016-10-26
- Revision:
- 1:446bd28a1f19
- Parent:
- 0:9e97accb2a4c
- Child:
- 2:ab8469051a2d
File content as of revision 1:446bd28a1f19:
#include "main.h" Serial pc(USBTX , USBRX); DigitalOut led(LED_GREEN); int main() { led = 0; wait(3); pc.printf("connecting..."); pc.printf("\n\n"); led = 1; start_clock(); while (true) { pc.printf("%d" , get_time()); pc.printf("\n"); led = 0; v_pace_sq(5 , 0.08); led = 1; pc.printf("%d" , get_time()); pc.printf("\n"); wait(0.92); } }