![]() |
VOOZH | about |
dotnet add package nanoFramework.Iot.Device.Bh1750fvi --version 1.2.991
NuGet\Install-Package nanoFramework.Iot.Device.Bh1750fvi -Version 1.2.991
<PackageReference Include="nanoFramework.Iot.Device.Bh1750fvi" Version="1.2.991" />
<PackageVersion Include="nanoFramework.Iot.Device.Bh1750fvi" Version="1.2.991" />Directory.Packages.props
<PackageReference Include="nanoFramework.Iot.Device.Bh1750fvi" />Project file
paket add nanoFramework.Iot.Device.Bh1750fvi --version 1.2.991
#r "nuget: nanoFramework.Iot.Device.Bh1750fvi, 1.2.991"
#:package nanoFramework.Iot.Device.Bh1750fvi@1.2.991
#addin nuget:?package=nanoFramework.Iot.Device.Bh1750fvi&version=1.2.991Install as a Cake Addin
#tool nuget:?package=nanoFramework.Iot.Device.Bh1750fvi&version=1.2.991Install as a Cake Tool
BH1750FVI is an digital Ambient Light Sensor IC for I2C bus interface. This IC is the most suitable to obtain the ambient light data for adjusting LCD and Keypad backlight power of Mobile phone. It is possible to detect wide range at High resolution.
Product datasheet can be found here
Important: make sure you properly setup the I2C pins especially for ESP32 before creating the I2cDevice, make sure you install the nanoFramework.Hardware.ESP32 nuget:
//////////////////////////////////////////////////////////////////////
// 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.
I2cConnectionSettings settings = new I2cConnectionSettings(busId: 1, (int)I2cAddress.AddPinLow);
I2cDevice device = I2cDevice.Create(settings);
using (Bh1750fvi sensor = new Bh1750fvi(device))
{
// read illuminance(Lux)
double illuminance = sensor.Illuminance;
}
Result of the sample:
| 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 | 48 | 6/22/2026 |
| 2.0.0-preview.85 | 54 | 6/1/2026 |
| 2.0.0-preview.80 | 62 | 5/27/2026 |
| 2.0.0-preview.73 | 65 | 5/20/2026 |
| 2.0.0-preview.69 | 61 | 5/18/2026 |
| 2.0.0-preview.62 | 55 | 5/13/2026 |
| 2.0.0-preview.45 | 62 | 4/29/2026 |
| 2.0.0-preview.32 | 57 | 4/20/2026 |
| 2.0.0-preview.16 | 66 | 3/10/2026 |
| 1.2.991 | 96 | 6/22/2026 |
| 1.2.952 | 138 | 3/4/2026 |
| 1.2.931 | 318 | 11/10/2025 |
| 1.2.907 | 280 | 10/2/2025 |
| 1.2.889 | 276 | 7/28/2025 |
| 1.2.869 | 372 | 4/2/2025 |
| 1.2.864 | 354 | 4/2/2025 |
| 1.2.852 | 329 | 3/11/2025 |
| 1.2.846 | 386 | 3/10/2025 |
| 1.2.822 | 271 | 2/26/2025 |
| 1.2.775 | 303 | 2/4/2025 |