gpio: Haskell GPIO interface, designed specifically for the RaspberryPi.

[ bsd3, hardware, library, program ] [ Propose Tags ] [ Report a vulnerability ]

Please see README.md


[Skip to Readme]

Modules

[Index]

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.0.3
Dependencies base (>=4.9 && <5), directory, exceptions, gpio, monad-control, optparse-generic, safe [details]
License BSD-3-Clause
Copyright 2016 Tyler Olson
Author Tyler Olson
Maintainer tydotg@gmail.com
Revised Revision 1 made by HerbertValerioRiedel at 2019-06-01T13:29:30Z
Category Hardware
Home page http://github.com/tgolson/gpio
Uploaded by tgolson at 2017-11-06T03:51:13Z
Distributions NixOS:0.1.0.3
Executables gpio
Downloads 2961 total (3 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-11-06 [all 1 reports]

Readme for gpio-0.1.0.3

[back to package description]

Haskell GPIO interface, designed specifically for the RaspberryPi.

This library also ships with an executable for directly running gpio commands. Note: when using the executable there are less guarantees about the current state of a pin. For example, when using the library we can be sure that an ActivePin 'Out has already been initialized and configured for writing values, when using the executable we are less sure, and therefore errors might occur.

Note: this package has limited functionality, might be buggy and is not optimized. It works for simple read/write operations on a few pre-defined pins, but still needs a lot more testing.

TODO:

  • Remove runLineHack when reading GPIO value files.
  • Optimize file reading to only look at first char.
  • Support other pin modes (in/out/up/down/pwm)
  • Support edges
  • Look into GPIO supported file watching
  • Add all pin numbers