Sha256: 46ea433cf306edbdb4b3f1c8ab705e39033c4c853ef0a95776f84cdf13d8145b

Contents?: true

Size: 908 Bytes

Versions: 7

Compression:

Stored size: 908 Bytes

Contents

# ffi-wiring-pi

* [Source](https://github.com/vimutter/ffi-wiring_pi/)
* [Issues](https://github.com/vimutter/ffi-wiring_pi/issues)

## Description

Ruby FFI bindings for the [wiringPi](http://wiringpi.com) library.

## Features

* Can setup and work with GPIO

## Examples

Setup GPIO:

    require 'ffi/wiring_pi'

    # Will setup with wiringPi pin numbering scheme
    FFI::WiringPi::GPIO.setup
    FFI::WiringPi::GPIO.set_pin_mode(0, FFI::WiringPi::GPIO::OUTPUT)
    FFI::WiringPi::GPIO.write(0, true)
    # Or
    FFI::WiringPi::GPIO.up(0)
    # Or
    pin = FFI::WiringPi::GPIO.get(0)
    pin.up!

## Requirements

* [Ruby](http://ruby-lang.org/) >= 2.6.1 or
* [wiringPi](http://wiringpi.com/download-and-install/) >= 2.46
* [ffi](http://github.com/ffi/ffi) ~> 1.0

## Install

    $ gem install ffi-wiring_pi

## License

Copyright (c) 2019 Mark Huk

See {file:LICENSE.txt} for license information.

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ffi-wiring_pi-0.1.6 README.md
ffi-wiring_pi-0.1.5 README.md
ffi-wiring_pi-0.1.4 README.md
ffi-wiring_pi-0.1.3 README.md
ffi-wiring_pi-0.1.2 README.md
ffi-wiring_pi-0.1.1 README.md
ffi-wiring_pi-0.1.0 README.md