Commit Graph

27 Commits

Author SHA1 Message Date
David Antliff f9ff3b4d35 Remove hard-coded destination paths for debian package creation. 2020-09-03 13:18:01 +12:00
Gordon Henderson 8d188fa0e0 update for the v3+ 2018-03-14 07:17:04 +00:00
Gordon Henderson e8da87fbac Added a fix to include -lcrypt for people who can't do it themselves.
Added gpio readall support for the Pi 0W.
2017-03-01 11:55:19 +00:00
Gordon Henderson 70fa99a127 Bumped the version to 2.40 - correctly this time, I hope.
Added fixed for a few minor things. pin driver for rht03/dht type
sensors. Network stuff is experimental - for now.
2017-02-27 19:51:32 +00:00
Gordon Henderson b1dfc186ef A new version of wiringPi. Added in more stuff and fixed it up
for kernels 4.8 onwards.

Some very old stuff might break.

Additional fixes for the ISR code and some tweaks here and
there. I've removed the checks for some operations that might
fail when using the gpiomem interface - which is now the default
way of doing things - if your program segfaults, then you
may need to use sudo on it.
2016-12-12 14:19:55 +00:00
Gordon Henderson b0a60c3302 Many changes - tidying up the extensions interfaces.
Updating the GPIO command - new command - allreadall
ScrollPhat code
max31855 code (tested with adafruit breakout board)
more tests
updated rht03 code

Raspberry Pi v3 support.
2016-02-29 06:57:38 +00:00
Ian Jackson 73aa8956c5 build: Introduce a variable "$sudo" and honour WIRINGPI_SUDO
We are going to want to not run sudo sometimes.  So replace literal
invocations of sudo with a variable, which is set to `sudo' by
default, but can be overridden from the environment.

No functional change if the environment variable is not set.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2015-09-12 20:38:20 +01:00
Ian Jackson ac0f074ff7 Build system: Move template-based debian build into debian-template
We are going to want to introduce a real Debian source package build
system.  But that needs to contain a lot of things in debian/ which
ought not to appear in the .deb made by the existing ad-hoc `./build
debian' arrangements, which we want to keep so as not to unduly
disturb existing users.

So rename the whole debian/ directory to debian-template/ and change
all references in the build system.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2015-09-12 20:38:19 +01:00
Ian Jackson a6ee925df6 Build system: Fix ./build debian
We need to -I and -L the build tree directories, not the directories
in /usr/local or wheveever.  Otherwise (a) the `./debian build' fails
if wiringPi is not installed (b) if it _is_ installed, the build picks
up the installed versions rather than the versions being built, which
is wrong.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2015-09-10 00:15:29 +00:00
Ian Jackson 95a292824f Build system: Add missing set -e
So that shell scripts do not blunder on after errors.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2015-09-09 23:30:16 +00:00
Gordon Henderson 72b2af231b OK. So the Pi v2 I have had older firmware and it wasn't quite
the same as everyone elses.

This is an interim version which will work on both Pi v1 and v2
boards until I have a bit more time to implement the correct
stuff for v2.
2015-02-03 14:53:32 +00:00
Gordon Henderson 7cb817498e OK, so an easier way to manage versions.
Debian package creation - crude, probably violated the Debian policys
but it seems to work just fine...
some other changes.
2015-01-31 16:43:08 +00:00
Gordon Henderson eb1fc2c920 Updates to the build process
Moved the extensions into wiringPi from gpio and made it more general purpose
more so that RTB and anything else can dymanically add devices
into wiringPi.
Changes to GPIO to updates for the SPI and I2C module loads
Added gpio unload for SPI and I2C.

Added a new way to setup SPI - by passing the mode in.

Support for the new Pi2 thing too
2015-01-30 18:14:49 +00:00
Gordon Henderson df45388f64 Fixed a bug in the gpio readall command on model B's (caused by a side-effect
of changing it for the B+)

Aded a gpio command: usbp hi/low - to change the usb power
2014-07-17 22:23:57 +01:00
Gordon Henderson 5e16e15a59 tidied and tested DRC Serial (renamed it it drcSerial too)
Tweaked the mcp3422 code
altered the build script to let me build static
2013-07-28 10:54:32 +01:00
Gordon Henderson e25cbc0a62 Added in the PiGlow devLib extension driver.
Written some examples for the PiGlow board
bumped wiringPi version
2013-07-24 15:14:09 +01:00
Gordon Henderson 348bc739d1 Sorted a variable initialisation issue that was giving incorrect results
with wiringPiISR.
Added the ability to readall/reset from extension modules.
Changed the build script to use /bin/sh rather than /bin/bash as it seems
some installations don't have /bin/bash (or if they do, then the people who
are telling me that ./build gives them command not found are wrong)
2013-05-25 13:02:02 +01:00
Gordon Henderson bfaf266ada Aded lcd-adafruit to test/drive the Adafruit RGB LCD plate
Added the Quick 2 Wire codes, etc.
Minor typo/bug fixes.
Added more modules into gpio -x
2013-05-20 21:13:44 +01:00
Gordon Henderson da38443cb2 wiringPi Version 2 - First commit (of v2) 2013-05-13 19:43:26 +01:00
Gordon Henderson db925cea18 Updated the build & makefile to allow for building the
I2C libraries again - but only if the right headers are
installed!
2013-01-19 21:46:13 +00:00
Gordon Henderson 95342e1f83 changed build to not do the I2C checks. 2013-01-19 15:10:48 +00:00
Gordon Henderson be04c1bd52 Changed the build system to drop I2C for now. Seems to cause too many issues
on non Raspbian systems (and even on some Raspbian systems it would appear ):

fixed a timing issue on softTone
fixed some issues in wiringPisetup introduced when optimising the mmap calls.
2013-01-19 10:31:14 +00:00
Gordon Henderson c82fb8735d Updated the build script to better try to detect lack of i2c-dev
(hopefully!)
Also updated all the mmap code in wiringPiSetup() to make it a bit more
sane and efficient to a degree.
2013-01-15 22:38:21 +00:00
Gordon Henderson 4673e38b1f Change to the build script to check for the presence of the I2C development
libraries.
Bumped gpio version.
2013-01-15 15:45:32 +00:00
Gordon Henderson c121349a7b Minor changes to messages being printed from wiringPiSetup()
Changed built to work marginally better.
2013-01-15 15:30:26 +00:00
Gordon Henderson 183c5a6b5c More changes to help reflect usage on Rev 2 / 512MB Raspberry Pi's.
Also Makefile tweaks to help improve things somewhat - decided to
read the Makefile manual after some 15 years to updated my make
grey cells somewhat.

New command in the gpio command - readall
2012-10-21 15:25:16 +01:00
Gordon Henderson c433519cf1 Updated gpio program to fix some minor issues.
Added top-level build script for lazy building.
2012-08-18 20:07:42 +01:00