Nerves.Grove v0.5.0 Nerves.Grove.Button

Seeed Studio Grove Button

Example

alias Nerves.Grove.Button

{:ok, pid} = Button.start_link(pin)

state = Button.read(pid)  # check if button is pressed

Summary

Functions

read(pid)

Specs

read(pid) :: boolean
start_link(pin)

Specs

start_link(pos_integer) :: {:ok, pid} | {:error, any}