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.
Fork of microbit-Heartbeat-serial by
Diff: main.cpp
- Revision:
- 2:d04db7a8d012
- Parent:
- 1:83ace7df2c63
--- a/main.cpp Mon Apr 16 16:52:36 2018 +0000
+++ b/main.cpp Tue Apr 17 12:11:39 2018 +0000
@@ -35,7 +35,7 @@
un_min=0x3FFFF;
un_max=0;
- pc.printf("Start\r\n");
+ pc.printf("Heartbeat\r\n");
n_ir_buffer_length=500; //buffer length of 100 stores 5 seconds of samples running at 100sps
@@ -52,10 +52,10 @@
un_min=aun_red_buffer[i]; //update signal min
if(un_max<aun_red_buffer[i])
un_max=aun_red_buffer[i]; //update signal max
- pc.printf("red=");
- pc.printf("%i", aun_red_buffer[i]);
- pc.printf(", ir=");
- pc.printf("%i\n\r", aun_ir_buffer[i]);
+ //pc.printf("red=");
+ pc.printf("%i\n", aun_red_buffer[i]);
+ //pc.printf(", ir=");
+ //pc.printf("%i\n\r", aun_ir_buffer[i]);
}
un_prev_data=aun_red_buffer[i];
