A feature complete driver for the MAX17048 lithium fuel gauge from Maxim.
Dependents: MAX17048_HelloWorld ECGAFE_copy MAX17048_HelloWorld Orion_newPCB_test_LV ... more
Now fully tested!
Diff: MAX17048.cpp
- Revision:
- 6:6927c72b2923
- Parent:
- 5:ffce4fe12ed1
- Child:
- 7:bf6972a21c61
--- a/MAX17048.cpp Thu Nov 07 17:53:44 2013 +0000 +++ b/MAX17048.cpp Thu Nov 07 18:23:02 2013 +0000 @@ -503,7 +503,7 @@ char buff[2]; //Select the register - m_I2C.write(m_ADDR, ®, 1); + m_I2C.write(m_ADDR, ®, 1, true); //Read the 16-bit register m_I2C.read(m_ADDR, buff, 2);