CircuitsSim.Device.VEML7700 (circuits_sim v0.1.2)

View Source

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

t()

@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

child_spec(args)

@spec child_spec(keyword()) :: Supervisor.child_spec()

new(options \\ [])

@spec new(keyword()) :: t()

set_state(bus_name, address, kv)

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