View on GitHub

MAX1704X Arduino Library

Arduino library for MAX17043/MAX17044 lithium ion battery fuel gauge.

Home - Getting Started - Constructor - Initialization - Functions - Examples

Getting Started

Add the library to your Arduino IDE and then include it within your sketch to begin using the fuel gauge.

Adding the Library

In the Arduino IDE, click the Sketch menu and choose Include Library and then Manage Libraries…. In the search box type MAX1704X. Highlight the library and click the Install button.

Include the Library

Using the library requires adding a the library header file to your sketch.

If you are using the MAX17043 (one cell battery) device, then add the line shown below to the top of your sketch.

#include "MAX17043.h"

Next Step

If you are using the MAX17044 (two cell battery) device, then add the line shown below to the top of your sketch.

#include "MAX17044.h"

Next Step

If you are wish to initialize the library yourself, then add the line shown below to the top of your sketch.

#include "MAX1704X.h"

Additionally, you will need to call the constructor on the class to create an instance.

Next Step