Skip to content

MainShayne233/elixir_pins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ElixirPins

Elixir API for Raspberry PI GPIO pins

Install

Add

{:elixir_pins, "0.0.1"}

to your dependency list in your mix.exs file.

Example:

defp deps do
  [
    {:elixir_pins, "0.0.1"}
  ]
end

Running locally on Pi

ElixirPins.turn_on 4   #-> turns on GPIO4 (pin #7)
ElixirPins.turn_off 4  #-> turns off GPIO4 (pin #7)

Running on remote computer

client = [
  ip:       '192.168.1.123', # ip address of raspberry pi
  user:     'pi',            # username of user on raspberry pi
  password: 'securepassword' # password for specified user
]
ElixirPins.turn_on 4, client   #-> turns on GPIO4 (pin #7) on remote raspberry pi
ElixirPins.turn_off 4, client  #-> turns off GPIO4 (pin #7) on remote raspberry pi

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages