fork the master
Dependencies: TextLCD mbed-rtos mbed
Fork of Pacemaker by
Diff: main.cpp
- Revision:
- 13:0a430559b488
- Parent:
- 12:53c2af2009d4
- Child:
- 14:94f1b9e3eb43
diff -r 53c2af2009d4 -r 0a430559b488 main.cpp --- a/main.cpp Mon Dec 01 21:17:31 2014 +0000 +++ b/main.cpp Mon Dec 01 23:17:43 2014 +0000 @@ -72,6 +72,7 @@ wait_us(PULSE_WIDTH_A); clearGPIO(a_pace); led1 = 0; + beat++; } @@ -134,7 +135,8 @@ while(1) { wait_ms(observation_interval); - myPanel.printf("BPM: %d\r\n", beat/observation_interval * 60); + printf("BPM: %d\r\n",beat*60000/observation_interval); + myPanel.printf("BPM: %02d\n\n",beat*60000/observation_interval); beat=0; } } @@ -242,7 +244,6 @@ if (v_clock >= (LRI_h-AVI_l) && aSensed == 0) { a_clock = 0; aSensed = 1; - beat++; //printf("Apace %d\r\n",v_clk); apace(); /*