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 LM75B by
Diff: LM75B.cpp
- Revision:
- 15:69991c038abe
- Parent:
- 14:3a44310726fe
- Child:
- 16:7ac462ba84ac
--- a/LM75B.cpp Tue Nov 12 17:22:12 2013 +0000 +++ b/LM75B.cpp Fri May 02 17:28:17 2014 +0000 @@ -16,10 +16,10 @@ #include "LM75B.h" -LM75B::LM75B(PinName sda, PinName scl, Address addr) : m_I2C(sda, scl), m_ADDR((int)addr) +LM75B::LM75B(PinName sda, PinName scl, Address addr, int hz) : m_I2C(sda, scl), m_ADDR((int)addr) { - //Set the I2C bus frequency to 400kHz - m_I2C.frequency(400000); + //Set the I2C bus frequency + m_I2C.frequency(hz); } bool LM75B::open()