Copyright | (c) 2017 Quixoftic LLC |
---|---|
License | BSD3 |
Maintainer | Drew Hess <dhess-src@quixoftic.com> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | Safe |
Language | Haskell2010 |
Mellon GPIO device constructors
sysfsGpioDevice :: OutputPin PinDescriptor -> Device PinDescriptor Source #
Given an OutputPin
on a Linux sysfs
-based GPIO system, create
a mellon-core
Device
such that, when the
Controller
locks the device, it drives a High
value on the pin, and when it unlocks the device, it drives a Low
value.
Note that the value driven on the pin is its logical value. You
can invert the signal levels by configuring the active level of the
OutputPin
.