library only
Fork of MAX30100 by
max30100.cpp
- Committer:
- 13beezusman
- Date:
- 2017-05-11
- Revision:
- 2:c8e4dc7b37f2
- Parent:
- 1:05aa9237db5c
File content as of revision 2:c8e4dc7b37f2:
/* Library for the Maxim MAX30100 pulse oximetry system */ #include "max30100.h" #define SERIAL_TX p9 #define SERIAL_RX p10 static Serial pc(SERIAL_TX, SERIAL_RX); //uint8_t buffer[14]; int8_t MAX30100::getPartID_dev() { i2Cdev.readByte(MAX30100_ADDRESS, MAX30100_REVISION_ID, buffer); return buffer[0]; }