BH1745Luminance
Elixir/Nerves driver for the ROHM BH1745 RGB color/ambient light sensor.
Board: switch-science product page.
Target machine: BeagleBone Green.
Installation
The package can be installed by adding bh1745luminance to your list of
dependencies in mix.exs:
def deps do
[
{:bh1745luminance, "~> 0.1.0"}
]
end
Usage
{:ok, ref} = BH1745Luminance.open()
{r, g, b, clear} = BH1745Luminance.read_rgbw(ref)
BH1745Luminance.close(ref)
Documentation is generated with ExDoc and published on HexDocs at https://hexdocs.pm/bh1745luminance.