View Source BH1750.Sensor (bh1750 v0.2.0)
The BH1750 sensor.
Link to this section Summary
Link to this section Types
Specs
option() :: {:bus_name, binary()} | {:address, 35 | 92} | {:mode, BH1750.Config.mode()} | {:resolution, BH1750.Config.resolution()}
Specs
t() :: %BH1750.Sensor{ config: BH1750.Config.t(), transport: BH1750.Transport.t() }
The BH1750 sensor
Link to this section Functions
Specs
Measures the ambient light.
Specs
Instantiates a BH1750 sensor.
Specs
Powers down the BH1750 sensor.