mellon-gpio-0.8.0.3: GPIO support for mellon

Copyright(c) 2017 Quixoftic LLC
LicenseBSD3
MaintainerDrew Hess <dhess-src@quixoftic.com>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellSafe
LanguageHaskell2010

Mellon.Device.GPIO

Contents

Description

 

Synopsis

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.