mellon-gpio-0.7.1.0: GPIO support for mellon

Copyright(c) 2016 Drew Hess
LicenseBSD3
MaintainerDrew Hess <src@drewhess.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.