View Source CircuitsSim.Device.SHT4X (circuits_sim v0.1.0)

Sensirion SHT4x sensors

Typically found at 0x44 See the datasheet for details.

Call set_humidity_rh/3 and set_temperature_c/3 to change the state of the sensor.

Summary

Types

@type options() :: [{:serial_number, integer()}]
@type t() :: %CircuitsSim.Device.SHT4X{
  current: atom(),
  humidity_rh: float(),
  serial_number: integer(),
  temperature_c: float()
}

Functions

@spec child_spec(keyword()) :: Supervisor.child_spec()
@spec new(options()) :: %CircuitsSim.Device.SHT4X{
  current: nil,
  humidity_rh: float(),
  serial_number: integer(),
  temperature_c: float()
}
Link to this function

set_humidity_rh(bus_name, address, value)

View Source
@spec set_humidity_rh(String.t(), Circuits.I2C.address(), number()) :: :ok
Link to this function

set_temperature_c(bus_name, address, value)

View Source
@spec set_temperature_c(String.t(), Circuits.I2C.address(), number()) :: :ok