wiringPi: Access GPIO pins on Raspberry Pi via wiringPi library

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

This is a Haskell binding to the wiringPi library, which allows you to interface with the GPIO pins on the Raspberry Pi. Unlike some other solutions for using the Raspberry Pi's GPIO pins, wiringPi provides access to more advanced features, such as enabling the internal pull-up or pull-down resistors.


[Skip to Readme]

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 1.0, 1.0.1, 1.0.1.1
Change log CHANGELOG
Dependencies base (>=4.6 && <5), wiringPi [details]
License BSD-3-Clause
Copyright © Patrick Pelletier, 2017
Author Patrick Pelletier
Maintainer code@funwithsoftware.org
Category Hardware
Home page https://github.com/ppelleti/hs-wiringPi
Bug tracker https://github.com/ppelleti/hs-wiringPi/issues
Source repo head: git clone https://github.com/ppelleti/hs-wiringPi.git
Uploaded by ppelleti at 2017-01-24T02:02:46Z
Distributions NixOS:1.0.1.1
Executables wiringPi-test, turn-off, write-byte-example, output-example, pwm-example
Downloads 2974 total (18 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-01-24 [all 1 reports]

Readme for wiringPi-1.0

[back to package description]

This is a Haskell binding to the wiringPi library, which allows you to interface with the GPIO pins on the Raspberry Pi. Unlike some other solutions for using the Raspberry Pi's GPIO pins, wiringPi provides access to more advanced features, such as enabling the internal pull-up or pull-down resistors.

To use this library, you must either run as root, or set the WIRINGPI_GPIOMEM environment variable. (Set it to anything; the value does not matter.) However, PWM will not work if WIRINGPI_GPIOMEM is set.

This library will only build on the Raspberry Pi. Before building this library, you must install the "wiringPi" C library on your Raspberry Pi, like this:

sudo apt-get install wiringpi

Tested on a Raspberry Pi Model B, with Raspbian Jessie Lite, using the system-provided Haskell compiler. (GHC 7.6.3.)

This Haskell binding is licensed under the 3-clause BSD license, and the examples in the examples directory are in the public domain. However, be aware that the wiringPi C library itself is licensed under the LGPLv3+.