clj-bots / gpio

GPIO Library for Clojure
Eclipse Public License 1.0
1 stars 0 forks source link

Initialize Pins from Data #3

Open zeroem opened 9 years ago

zeroem commented 9 years ago

With a map that looks something like so:

{
  :pin 1234
  :direction :out
  :state :high
}

or like so:

{
  :pin 1234
  :direction :in
  :edge :rising
}

Return a GPIOPin in the state described by the data.