Hexiwear heart rate sensor demo
Fork of Hexi_Accelero_Magneto_Example by
Revision 5:2e1700fc3386, committed 2016-09-04
- Comitter:
- DimiterK
- Date:
- Sun Sep 04 22:41:32 2016 +0000
- Parent:
- 4:acdc72fe9dcf
- Commit message:
- First release
Changed in this revision
--- a/MAX30101.lib Tue Aug 30 22:13:42 2016 +0000 +++ b/MAX30101.lib Sun Sep 04 22:41:32 2016 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/AswinSivakumar/code/FXOS8700/#4bfb42d6c70c +https://developer.mbed.org/users/DimiterK/code/MAX30101/#3be008e67345
--- a/main.cpp Tue Aug 30 22:13:42 2016 +0000
+++ b/main.cpp Sun Sep 04 22:41:32 2016 +0000
@@ -1,21 +1,16 @@
#include "mbed.h"
-#include "MAX20101.h"
+#include "MAX30101.h"
-// Check out the full featured example application for interfacing to the
-// Accelerometer/Magnetometer device at the following URL
-// https://developer.mbed.org/users/trm/code/fxos8700cq_example/
-DigitalOut led1(LED_GREEN);
+DigitalOut led1(LED_BLUE);
-// Initialize Serial port
-Serial pc(USBTX, USBRX);
+Serial pc(USBTX, USBRX);// Initialize Serial port
-// Pin connections & address for Hexiwear
MAX30101 heart(PTB1, PTB0);
int main() {
- printf("MAX301010 sensor test....\r\n\r\n");
+ pc.printf("MAX301010 sensor test....\r\n\r\n");
wait(0.5);
heart.enable();
@@ -23,7 +18,7 @@
while (1) {
led1 = !led1;
// Example data printing
- printf("ID 0x%02x\r\n", heart.getRevisionID());
+ pc.printf("ID 0x%02x\r\n", heart.getRevisionID());
Thread::wait(500);
}
--- a/mbed-os.lib Tue Aug 30 22:13:42 2016 +0000 +++ b/mbed-os.lib Sun Sep 04 22:41:32 2016 +0000 @@ -1,1 +1,1 @@ -https://github.com/ARMmbed/mbed-os/#0712b8adf6bbc7eb796d5dac26f95d79d40745ef +https://github.com/ARMmbed/mbed-os/#bdab10dc0f90748b6989c8b577771bb403ca6bd8
