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

Vishay VEML7700 ambient light sensors. This sim works for VEML6030 as well.

VEML7700 sensors are at address 0x10; VEML6030 typically at 0x48. See the datasheet for details.

Call set_state/3 to change the state of the sensor.

Summary

Types

@type t() :: %CircuitsSim.Device.VEML7700{
  als_config: 0..65535,
  als_output: 0..65535,
  als_power_saving: 0..65535,
  als_threshold_high: 0..65535,
  als_threshold_low: 0..65535,
  interrupt_status: 0..65535,
  white_output: 0..65535
}

Functions

@spec child_spec(keyword()) :: Supervisor.child_spec()
@spec new(keyword()) :: t()
Link to this function

set_state(bus_name, address, kv)

View Source
@spec set_state(String.t(), Circuits.I2C.address(), keyword()) :: :ok