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: Cosmic_Pi_STM32_i2c
Diff: Si7020.cpp
- Revision:
- 2:b082ba73bed0
- Parent:
- 1:eca9d19c17ab
--- a/Si7020.cpp Fri Apr 17 11:25:00 2015 -0500 +++ b/Si7020.cpp Sun Jan 06 19:12:56 2019 +0000 @@ -51,14 +51,14 @@ static const char cmd_fw_ver[] = { 0x84, 0xB8 }; //****************************************************************************** -Si7020::Si7020(PinName sda, PinName scl) -{ - i2c_ = new I2C(sda, scl); - i2c_owner = true; +//Si7020::Si7020(PinName sda, PinName scl) +//{ +// i2c_ = new I2C(sda, scl); +// i2c_owner = true; // 400KHz, as specified by the datasheet. - i2c_->frequency(400000); -} +// i2c_->frequency(400000); +//} //****************************************************************************** Si7020::Si7020(I2C *i2c) :