36 Commits

Author SHA1 Message Date
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
dca8a19fb8 Updated mostly to the gpio readall command to support the Raspberry Pi B+ 2014-07-14 08:39:38 +01:00
Gordon Henderson
0150b02478 Fixed a small bug in the ISR code where it was looking for the gpio program.
Should now work correctly on Arch, or other systems that install gpio as
/usr/bin/gpio.
2014-06-27 10:55:39 +01:00
Gordon Henderson
7cbb8865c8 Bumped version to 2.15 2014-06-24 19:25:42 +01:00
Gordon Henderson
6fba403b2f Updates for the Raspnerry Pi Compute Module - changes to the gpio program
to produce a nicer 'readall' output too.

It also understands new pins 53,54,55 and 56 in wiringPiSetupPhys()
mode to represent the pins on the P5 connector on the Rev 2 Pi's

Changes to pinMode() to allow new modes SOFT_PWM and SOFT_TONE.
2014-06-24 19:23:31 +01:00
Gordon Henderson
05e2f67e7f changed to pin mode to support softPwm.
bugfix in blink.sh - wring pin
improving the maxdetect routing - a little.
gpio pins
2014-05-20 11:43:07 +01:00
Gordon Henderson
f18c8f7204 Added some tweaks to gpio to set alt modes on pins (sssh!) 2013-08-03 23:53:35 +01:00
Gordon Henderson
43422be6ac Bumped version 2013-07-28 21:38:08 +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
cbf6d642b5 Added in PiGlow devLib and a couple of examples for the PiGlow
bumped version.
2013-07-23 20:25:46 +01:00
Gordon Henderson
8c8578a26b Reverted gpio readall to older version - new version is gpio nreadall
fixed the max5322 code.
2013-07-23 09:19:34 +01:00
Gordon Henderson
27698766b2 Fixed delayMicroseconds for more than 1 second.
Added new code for max31855
2013-06-27 21:51:55 +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
711017ec36 More typos, added mcp3004/mcp3008 2013-05-21 22:38:16 +01:00
Gordon Henderson
41fb1b9e2a Gah. another small fix to the I2C code. 2013-05-20 22:23:14 +01:00
Gordon Henderson
a7c21d3efc Bumped version number to 2.04 2013-05-20 21:14:55 +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
25895a8670 Bother. Small issue crept into the SPI code. 2013-05-13 20:10:41 +01:00
Gordon Henderson
da38443cb2 wiringPi Version 2 - First commit (of v2) 2013-05-13 19:43:26 +01:00
Gordon Henderson
98bcb20d93 Slight change to the gpio program to fix SPI buffer size when loading
the module.
Typo in gpio man page
Bug fixed in board revision detection (which would never happen
anyway, however)
2013-02-07 21:53:49 +00:00
Gordon Henderson
4c8862eac9 Botched the ALT order in gpio )-:
(Or maybe Broadcom did!!!)
2013-02-02 20:33:51 +00:00
Gordon Henderson
56c77b5a2e Added a clock mode to enable the GPIo pins to be set with
one of the GPCLK drivers to generate a frequency up to
19.2MHz.

Tidied some code up and added the clock functions into the gpio
utility.
2013-02-01 20:19:22 +00:00
Gordon Henderson
4ba36e247a Fixed a minor formatting issue in gpio readall 2013-01-28 16:06:34 +00:00
Gordon Henderson
e8f6258004 Quite a few changes here.
Added in generic 'blink' programs in the examples in C, RTB and Shell.
Updated wiringPi with a little big-file on the millis() function and
added in a new micros() function too.
Updated the examples with standard LGPL headers.
Added a new isr-osc.c test program - just for ISR timing purposes.
2013-01-28 13:00:47 +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
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
13bbba7a22 Lots of changes here. Added new I2C test code, a new serialTest program,
and developed the new ISR - Interrupt Service Routine
handler - much easier than the old waitForInterrupt code!

Minor tweaks to the gpio program to recognise the environment variable
WIRINGPI_DEBUG too, and removed the printing of the errors from the
main wiringPi setup routines (and added some new ones!)
2013-01-14 11:31:56 +00:00
Gordon Henderson
25e4ec570b Big update here.
delayMicrosecondsHard re-written - again.
Added a serialRead example program, and added in the okLed
to the examples too.
Updated/checked some of the GPIO/PWM code.
Added in some experimental servo and tone generating code and
and example or 2.
Tweaks to the gpio command to correctly load the I2C modules too.
2012-12-06 21:49:41 +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
86a5c68e08 Updating gpio manual page 2012-10-02 14:32:12 +01:00
Gordon Henderson
8cb493937f Improved the PWM functions with help from Chris Hall. 2012-09-16 10:15:32 +01:00
Gordon Henderson
99095e3fa0 Added new SPI driver helpers.
Changed the gertboard code to use it
and ran more tests on he Gertboard code.
2012-08-27 20:56:14 +01:00
Gordon Henderson
1bb4989e11 Merge branch 'master' of git.drogon.net:projects/wiringPi
Conflicts:
	gpio/gpio.c
2012-08-19 15:33:26 +01:00
Gordon Henderson
178ea08a0f Minor updates to GPIO and README files 2012-08-19 15:17:03 +01:00
Gordon Henderson
f99ffeda40 Updated the GPIO command to add in new features for PWM
Updated wiringPi to add new PWM controls.
2012-08-19 15:12:45 +01:00
Gordon Henderson
bf0ad86017 Initial move to GIT 2012-08-16 15:04:43 +01:00