Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 798 Bytes

README.md

File metadata and controls

33 lines (23 loc) · 798 Bytes

SHT3x

Elixir driver for the SHT3x (SHT30, SHT31, SHT35) series temperature and humidity sensors from Sensirion.

Usage

{:ok, i2c_pid} = ElixirALE.I2C.start_link("i2c-1", 0x44)
[{:ok, temp}, {:ok, humidity}] = SHT3x.single_shot_result(i2c_pid, :high, true)

Installation

If available in Hex, the package can be installed by adding sht3x to your list of dependencies in mix.exs:

def deps do
  [
    {:sht3x, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/sht3x.

TODO

  • increase test + typespec coverage/correctness
  • more docs