Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for Raspberry Pi 4 #1

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 7 additions & 5 deletions README.md
@@ -1,14 +1,16 @@
# WiringPi
WiringPi is an implementation of most of the Arduino Wiring functions for the Raspberry Pi, this gem is a wrapper for the main wiringpi library and provides a nice OO interface with a few other handy helpers.

This branch of this fork has been updated to work on the Raspberry Pi 4. This branch is specifically tied to WiringPi binary version 2.50 [here](https://github.com/WiringPi/WiringPi/releases/tag/final_official_2.50). That is the maintenance repo for Wiring Pi now that Gordon Henderson (who long gave us all his great work) has deprecated his repo.

## Installation
Install with `gem install wiringpi2` or use bundler's Gemfile
```
source 'https://rubygems.org'

gem 'wiringpi2' # https://github.com/WiringPi/WiringPi-Ruby
The offical rubygems version does not support Raspberry Pi 4, this branch of this fork will work with the Raspberry Pi 4.

```
gem install specific_install
sudo gem specific_install -l https://github.com/davidgyoung/WiringPi-Ruby.git -b wiringpi250
```
then: `bundle install`

## Example
```
Expand Down
2 changes: 1 addition & 1 deletion ext/wiringpi/WiringPi
Submodule WiringPi updated 60 files
+0 −7 INSTALL
+0 −26 README.TXT
+19 −0 README.md
+1 −1 VERSION
+12 −1 build
+2 −2 debian-template/wiringPi/DEBIAN/control
+2 −2 devLib/Makefile
+1 −1 devLib/gertboard.c
+1 −2 devLib/piFaceOld.c
+2 −2 examples/Makefile
+2 −2 examples/PiFace/Makefile
+2 −2 examples/PiGlow/Makefile
+61 −0 examples/blink-thread.c
+61 −0 examples/blink8-drcn.c
+18 −23 examples/delayTest.c
+2 −2 examples/q2w/Makefile
+2 −2 examples/scrollPhat/Makefile
+11 −9 gpio/Makefile
+26 −35 gpio/gpio.1
+178 −42 gpio/gpio.c
+1 −1 gpio/pintest
+46 −11 gpio/readall.c
+1 −1 gpio/test.sh
+0 −1 gpio/version.h
+8 −4 newVersion
+5 −0 update
+3 −0 version.h
+20 −37 wiringPi/Makefile
+1 −1 wiringPi/ads1115.c
+237 −0 wiringPi/bmp180.c
+34 −0 wiringPi/bmp180.h
+405 −0 wiringPi/drcNet.c
+42 −0 wiringPi/drcNet.h
+146 −0 wiringPi/ds18b20.c
+34 −0 wiringPi/ds18b20.h
+150 −0 wiringPi/htu21d.c
+34 −0 wiringPi/htu21d.h
+1 −1 wiringPi/mcp3002.c
+20 −0 wiringPi/noMoreStatic
+1 −1 wiringPi/pcf8591.c
+95 −0 wiringPi/pseudoPins.c
+26 −0 wiringPi/pseudoPins.h
+252 −0 wiringPi/rht03.c
+25 −0 wiringPi/rht03.h
+41 −24 wiringPi/softPwm.c
+470 −260 wiringPi/wiringPi.c
+68 −35 wiringPi/wiringPi.h
+2 −1 wiringPi/wiringPiI2C.c
+14 −6 wiringPi/wiringPiSPI.c
+31 −19 wiringPi/wiringSerial.c
+177 −9 wiringPi/wpiExtensions.c
+100 −0 wiringPiD/Makefile
+82 −0 wiringPiD/daemonise.c
+9 −0 wiringPiD/daemonise.h
+44 −0 wiringPiD/drcNetCmd.h
+330 −0 wiringPiD/network.c
+31 −0 wiringPiD/network.h
+126 −0 wiringPiD/runRemote.c
+7 −11 wiringPiD/runRemote.h
+382 −0 wiringPiD/wiringpid.c
1 change: 1 addition & 0 deletions ext/wiringpi/extconf.rb
Expand Up @@ -2,6 +2,7 @@

LIBDIR = RbConfig::CONFIG['libdir']
INCLUDEDIR = RbConfig::CONFIG['includedir']
$LIBRUBYARG_SHARED += " -lrt"

$srcs = Dir.glob('WiringPi/wiringPi/*.c')
$srcs += Dir.glob('WiringPi/devLib/*.c')
Expand Down
2 changes: 1 addition & 1 deletion wiringpi.gemspec
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'wiringpi'
s.version = '2.32.0'
s.version = '2.60.0'
s.license = 'GNU Lesser General Public License v3'
s.date = '2013-04-07'
s.platform= Gem::Platform::RUBY
Expand Down