VOOZH about

URL: https://www.nuget.org/packages/nanoFramework.Iot.Device.Max1704x/

⇱ NuGet Gallery | nanoFramework.Iot.Device.Max1704x 1.0.487




👁 Image
nanoFramework.Iot.Device.Max1704x 1.0.487

Prefix Reserved
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package nanoFramework.Iot.Device.Max1704x --version 1.0.487
 
 
NuGet\Install-Package nanoFramework.Iot.Device.Max1704x -Version 1.0.487
 
 
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.487" />
 
 
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.487" />
 
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.487
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: nanoFramework.Iot.Device.Max1704x, 1.0.487"
 
 
#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.
#:package nanoFramework.Iot.Device.Max1704x@1.0.487
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=nanoFramework.Iot.Device.Max1704x&version=1.0.487
 
Install as a Cake Addin
#tool nuget:?package=nanoFramework.Iot.Device.Max1704x&version=1.0.487
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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 Versions Compatible and additional computed target framework versions.
.NET Framework net 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
2.0.0-preview.85 50 6/1/2026
2.0.0-preview.80 53 5/27/2026
2.0.0-preview.73 58 5/20/2026
2.0.0-preview.62 50 5/13/2026
2.0.0-preview.45 56 4/29/2026
2.0.0-preview.32 56 4/20/2026
2.0.0-preview.16 74 3/10/2026
1.0.487 119 3/4/2026
1.0.466 280 11/10/2025
1.0.442 225 10/2/2025
1.0.424 208 7/28/2025
1.0.404 289 4/2/2025
1.0.399 302 4/2/2025
1.0.387 279 3/11/2025
1.0.381 258 3/10/2025
1.0.357 209 2/26/2025
1.0.310 210 2/4/2025
1.0.307 205 2/4/2025
1.0.290 225 1/31/2025
1.0.278 224 1/20/2025
Loading failed