nanoFramework.Iot.Device.Max1704x 1.0.357

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package nanoFramework.Iot.Device.Max1704x --version 1.0.357
                    
NuGet\Install-Package nanoFramework.Iot.Device.Max1704x -Version 1.0.357
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="nanoFramework.Iot.Device.Max1704x" Version="1.0.357" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="nanoFramework.Iot.Device.Max1704x" Version="1.0.357" />
                    
Directory.Packages.props
<PackageReference Include="nanoFramework.Iot.Device.Max1704x" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add nanoFramework.Iot.Device.Max1704x --version 1.0.357
                    
#r "nuget: nanoFramework.Iot.Device.Max1704x, 1.0.357"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=nanoFramework.Iot.Device.Max1704x&version=1.0.357
                    
Install nanoFramework.Iot.Device.Max1704x as a Cake Addin
#tool nuget:?package=nanoFramework.Iot.Device.Max1704x&version=1.0.357
                    
Install nanoFramework.Iot.Device.Max1704x as a Cake Tool

MAX1704x/MAX17043/MAX17044/MAX17048/MAX17049 - Battery gauge

Library designed for controlling MAX1704x IC.

Functions

The binding supports all functionalities for MAX1704x family. Implemented based on SparkFun implementation.

Classes

  • Max17043 - class for MAX17043
  • Max17044 - class for MAX17044
  • Max17048 - class for MAX17048
  • Max17049 - class for MAX17049
  • Max1704x - base class for all max IC

Usage

// Make sure your pins are configured correctly especially for ESp32
var i2cDevice = I2cDevice.Create(new I2cConnectionSettings(1, Max1704X.DefaultAddress));
var max = new Max17048(i2cDevice);
Console.WriteLine($"Voltage: {max.BatteryVoltage.Volts} V");
Console.WriteLine($"Percent: {max.BatteryPercent.Percent} %");

Important: make sure you properly setup the I2C pins especially for ESP32 before creating the I2cDevice.

//////////////////////////////////////////////////////////////////////
// when connecting to an ESP32 device, need to configure the I2C GPIOs
// used for the bus
Configuration.SetPinFunction(21, DeviceFunction.I2C1_DATA);
Configuration.SetPinFunction(22, DeviceFunction.I2C1_CLOCK);
Product Compatible and additional computed target framework versions.
.NET Framework net is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.404 165 4/2/2025
1.0.399 168 4/2/2025
1.0.387 183 3/11/2025
1.0.381 160 3/10/2025
1.0.357 109 2/26/2025
1.0.310 118 2/4/2025
1.0.307 102 2/4/2025
1.0.290 107 1/31/2025
1.0.278 122 1/20/2025
1.0.272 106 1/13/2025
1.0.253 111 12/30/2024
1.0.231 114 12/16/2024
1.0.227 109 12/11/2024
1.0.208 116 10/23/2024
1.0.191 108 10/3/2024
1.0.174 128 9/6/2024
1.0.166 129 8/28/2024
1.0.148 140 8/9/2024
1.0.136 96 7/26/2024
1.0.125 118 7/17/2024
1.0.111 142 6/24/2024
1.0.108 125 6/19/2024
1.0.105 114 6/14/2024
1.0.71 133 4/15/2024
1.0.49 143 3/22/2024
1.0.29 140 2/28/2024
1.0.15 140 1/29/2024