![]() |
VOOZH | about |
dotnet add package nanoFramework.Iot.Device.Max1704x --version 2.0.0-preview.16
NuGet\Install-Package nanoFramework.Iot.Device.Max1704x -Version 2.0.0-preview.16
<PackageReference Include="nanoFramework.Iot.Device.Max1704x" Version="2.0.0-preview.16" />
<PackageVersion Include="nanoFramework.Iot.Device.Max1704x" Version="2.0.0-preview.16" />Directory.Packages.props
<PackageReference Include="nanoFramework.Iot.Device.Max1704x" />Project file
paket add nanoFramework.Iot.Device.Max1704x --version 2.0.0-preview.16
#r "nuget: nanoFramework.Iot.Device.Max1704x, 2.0.0-preview.16"
#:package nanoFramework.Iot.Device.Max1704x@2.0.0-preview.16
#addin nuget:?package=nanoFramework.Iot.Device.Max1704x&version=2.0.0-preview.16&prereleaseInstall as a Cake Addin
#tool nuget:?package=nanoFramework.Iot.Device.Max1704x&version=2.0.0-preview.16&prereleaseInstall as a Cake Tool
Library designed for controlling MAX1704x IC.
The binding supports all functionalities for MAX1704x family. Implemented based on SparkFun implementation.
// 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. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.0.0-preview.94 | 51 | 6/22/2026 |
| 2.0.0-preview.85 | 53 | 6/1/2026 |
| 2.0.0-preview.80 | 57 | 5/27/2026 |
| 2.0.0-preview.73 | 60 | 5/20/2026 |
| 2.0.0-preview.62 | 52 | 5/13/2026 |
| 2.0.0-preview.45 | 57 | 4/29/2026 |
| 2.0.0-preview.32 | 58 | 4/20/2026 |
| 2.0.0-preview.16 | 75 | 3/10/2026 |
| 1.0.526 | 96 | 6/22/2026 |
| 1.0.487 | 120 | 3/4/2026 |
| 1.0.466 | 282 | 11/10/2025 |
| 1.0.442 | 229 | 10/2/2025 |
| 1.0.424 | 210 | 7/28/2025 |
| 1.0.404 | 291 | 4/2/2025 |
| 1.0.399 | 304 | 4/2/2025 |
| 1.0.387 | 280 | 3/11/2025 |
| 1.0.381 | 259 | 3/10/2025 |
| 1.0.357 | 211 | 2/26/2025 |
| 1.0.310 | 213 | 2/4/2025 |
| 1.0.307 | 207 | 2/4/2025 |