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:
- 8:65c889800b3a
- Parent:
- 7:bf6972a21c61
- Child:
- 9:2c1d82ecd63c
--- a/MAX17048.cpp Tue Nov 12 17:48:11 2013 +0000 +++ b/MAX17048.cpp Tue Nov 12 21:43:55 2013 +0000 @@ -16,6 +16,9 @@ #include "MAX17048.h" +const char MAX17048::RCOMP0 = 0x97; +const int MAX17048::m_ADDR = (0x36 << 1); + MAX17048::MAX17048(PinName sda, PinName scl) : m_I2C(sda, scl) { //Set the I2C bus frequency to 400kHz