README.md in ffi-wiring_pi-0.1.6 vs README.md in ffi-wiring_pi-0.2.0

- old
+ new

@@ -1,7 +1,9 @@ # ffi-wiring-pi +[![Gem Version](https://badge.fury.io/rb/ffi-wiring_pi.svg)](https://badge.fury.io/rb/ffi-wiring_pi)[![Build Status](https://travis-ci.org/vimutter/ffi-wiring_pi.svg?branch=master)](https://travis-ci.org/vimutter/ffi-wiring_pi) + * [Source](https://github.com/vimutter/ffi-wiring_pi/) * [Issues](https://github.com/vimutter/ffi-wiring_pi/issues) ## Description @@ -25,10 +27,21 @@ FFI::WiringPi::GPIO.up(0) # Or pin = FFI::WiringPi::GPIO.get(0) pin.up! + # Or + + extend FFI::WiringPi::GPIO + + setup + pin = get 0 + pin.up! + + pin2 = get 1, INPUT + p pin2.value + ## 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 @@ -39,6 +52,6 @@ ## License Copyright (c) 2019 Mark Huk -See {file:LICENSE.txt} for license information. +See [Licence](LICENSE.txt) for license information.