![]() |
VOOZH | about |
dotnet add package nanoFramework.Iot.Device.Bq2579x --version 1.0.589
NuGet\Install-Package nanoFramework.Iot.Device.Bq2579x -Version 1.0.589
<PackageReference Include="nanoFramework.Iot.Device.Bq2579x" Version="1.0.589" />
<PackageVersion Include="nanoFramework.Iot.Device.Bq2579x" Version="1.0.589" />Directory.Packages.props
<PackageReference Include="nanoFramework.Iot.Device.Bq2579x" />Project file
paket add nanoFramework.Iot.Device.Bq2579x --version 1.0.589
#r "nuget: nanoFramework.Iot.Device.Bq2579x, 1.0.589"
#:package nanoFramework.Iot.Device.Bq2579x@1.0.589
#addin nuget:?package=nanoFramework.Iot.Device.Bq2579x&version=1.0.589Install as a Cake Addin
#tool nuget:?package=nanoFramework.Iot.Device.Bq2579x&version=1.0.589Install as a Cake Tool
This library supports several Bq2579x devices, namely:
| VQFN 29 pins chip package |
| Simplified schematic |
| Evaluation Module |
Warning: If using an ESP32, make sure to properly setup the I2C pins before creating the
I2cDevice. Add a reference tonanoFramework.Hardware.ESP32NuGet package and add the following code lines:
//////////////////////////////////////////////////////////////////////
// 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);
For other devices like STM32, please make sure you're using the preset pins for the I2C bus you want to use.
The following code creates an I2C configuration and instantiates a Bq25798 object. Then it prints the Minimum System Voltage detected by the device at boot. Last it enters a loop where it prints the current Vbus voltage each second.
I2cConnectionSettings settings = new I2cConnectionSettings(1, Bq25798.DefaultI2cAddress);
I2cDevice device = I2cDevice.Create(settings);
using (Bq25798 charger = new Bq25798(device))
{
Debug.WriteLine("");
Debug.WriteLine($"BQ25798 connected to I2C{device.ConnectionSettings.BusId}");
Debug.WriteLine("");
Debug.WriteLine($"Minimum System Voltage is config @ {charger.MinimalSystemVoltage.Volts:N3}V");
while (true)
{
Debug.WriteLine($"Current Vbus: {charger.Vbus.Volts:N3}V");
Debug.WriteLine("");
Thread.Sleep(1000);
}
}
The development of this library was kindly sponsored by OrgPal.IoT!
| 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.85 | 48 | 6/1/2026 |
| 2.0.0-preview.80 | 60 | 5/27/2026 |
| 2.0.0-preview.73 | 55 | 5/20/2026 |
| 2.0.0-preview.62 | 56 | 5/13/2026 |
| 2.0.0-preview.45 | 58 | 4/29/2026 |
| 2.0.0-preview.32 | 60 | 4/20/2026 |
| 2.0.0-preview.16 | 67 | 3/10/2026 |
| 1.0.589 | 138 | 3/4/2026 |
| 1.0.568 | 299 | 11/10/2025 |
| 1.0.544 | 257 | 10/2/2025 |
| 1.0.526 | 248 | 7/28/2025 |
| 1.0.506 | 330 | 4/2/2025 |
| 1.0.501 | 289 | 4/2/2025 |
| 1.0.489 | 321 | 3/11/2025 |
| 1.0.483 | 326 | 3/10/2025 |
| 1.0.459 | 247 | 2/26/2025 |
| 1.0.435 | 273 | 2/11/2025 |
| 1.0.412 | 242 | 2/4/2025 |
| 1.0.409 | 254 | 2/4/2025 |
| 1.0.392 | 239 | 1/31/2025 |