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 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
diff -r acdc72fe9dcf -r 2e1700fc3386 MAX30101.lib --- 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
diff -r acdc72fe9dcf -r 2e1700fc3386 main.cpp --- 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); }
diff -r acdc72fe9dcf -r 2e1700fc3386 mbed-os.lib --- 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