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!

Revision:
9:2c1d82ecd63c
Parent:
8:65c889800b3a
Child:
10:4f695111eb54
--- a/MAX17048.h	Tue Nov 12 21:43:55 2013 +0000
+++ b/MAX17048.h	Fri May 02 17:28:52 2014 +0000
@@ -73,8 +73,9 @@
      *
      * @param sda The I2C data pin.
      * @param scl The I2C clock pin.
+     * @param hz The I2C bus frequency (defaults to 400kHz).
      */
-    MAX17048(PinName sda, PinName scl);
+    MAX17048(PinName sda, PinName scl, int hz = 400000);
 
     /** Probe for the MAX17048 and indicate if it's present on the bus
      *