The gpio package

[ Tags: bsd3, hardware, library, program ] [ Propose Tags ]

Please see README.md


[Skip to Readme]

Properties

Versions 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.0.3
Dependencies base (>=4.7 && <5), directory, exceptions, gpio, monad-control, optparse-generic, safe [details]
License BSD3
Copyright 2016 Tyler Olson
Author Tyler Olson
Maintainer tydotg@gmail.com
Category Hardware
Home page http://github.com/tgolson/gpio
Uploaded Mon Nov 6 03:51:13 UTC 2017 by tgolson
Distributions NixOS:0.1.0.3
Executables gpio
Downloads 228 total (40 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-11-06 [all 1 reports]
Hackage Matrix CI

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


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