View Source CircuitsSim.Device.SGP30 (circuits_sim v0.1.0)
Sensirion SGP30 gas sensor
Typically found at 0x58 See the datasheet Many features aren't implemented.
Call the following functions to change the state of the sensor.
Summary
Types
@type options() :: [{:serial, integer()}]
Functions
@spec child_spec(keyword()) :: Supervisor.child_spec()
@spec new(options()) :: %CircuitsSim.Device.SGP30{ co2_eq_ppm: 0, current: nil, ethanol_raw: 0, h2_raw: 0, serial: 0, tvoc_ppb: 0 }
@spec set_co2_eq_ppm(String.t(), Circuits.I2C.address(), integer()) :: :ok
@spec set_ethanol_raw(String.t(), Circuits.I2C.address(), integer()) :: :ok
@spec set_h2_raw(String.t(), Circuits.I2C.address(), integer()) :: :ok
@spec set_tvoc_ppb(String.t(), Circuits.I2C.address(), integer()) :: :ok