Ported to Arduino from here.
A feature complete Arduno library for the MAX17048 lithium-ion fuel gauge