Skip to content

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

License

Notifications You must be signed in to change notification settings

bear-metal/elixir-sht3x

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages