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.
Dependents: MAX30205_Human_Body_Temperature_Sensor
Diff: MAX30205.cpp
- Revision:
- 4:68e1b36becb0
- Parent:
- 2:a659724f496a
- Child:
- 6:b5ab5204d944
--- a/MAX30205.cpp Fri Apr 07 21:14:44 2017 +0000
+++ b/MAX30205.cpp Fri Apr 07 21:41:27 2017 +0000
@@ -36,17 +36,17 @@
//******************************************************************************
-MAX30205::MAX30205(PinName sda, PinName scl, uint8_t slaveAddress, PinName os):
+MAX30205::MAX30205(PinName sda, PinName scl, uint8_t slaveAddress):
m_i2c(sda, scl), m_writeAddress(slaveAddress << 1),
-m_readAddress((slaveAddress << 1) | 1), m_os(os, PullUp)
+m_readAddress((slaveAddress << 1) | 1)
{
}
//******************************************************************************
-MAX30205::MAX30205(I2C &i2c, uint8_t slaveAddress, PinName os):
+MAX30205::MAX30205(I2C &i2c, uint8_t slaveAddress):
m_i2c(i2c), m_writeAddress(slaveAddress << 1),
-m_readAddress((slaveAddress << 1) | 1), m_os(os, PullUp)
+m_readAddress((slaveAddress << 1) | 1)
{
}