A feature complete driver for the ISL1208 real time clock from Intersil.
Dependents: ISL1208_HelloWorld
Diff: ISL1208.cpp
- Revision:
- 6:c0635401a37f
- Parent:
- 5:d67ac8351c76
--- a/ISL1208.cpp Tue Nov 12 21:42:44 2013 +0000 +++ b/ISL1208.cpp Fri May 02 17:27:38 2014 +0000 @@ -18,10 +18,10 @@ const int ISL1208::m_ADDR = (0x6F << 1); -ISL1208::ISL1208(PinName sda, PinName scl) : m_I2C(sda, scl) +ISL1208::ISL1208(PinName sda, PinName scl, int hz) : m_I2C(sda, scl) { - //Set the I2C bus frequency to 400kHz - m_I2C.frequency(400000); + //Set the I2C bus frequency + m_I2C.frequency(hz); } bool ISL1208::open()