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.
This commit is contained in:
Gordon Henderson
2012-12-06 21:49:41 +00:00
parent 183c5a6b5c
commit 25e4ec570b
19 changed files with 874 additions and 127 deletions

View File

@@ -9,11 +9,11 @@ gpio \- Command-line access to Raspberry Pi and PiFace GPIO
.PP
.B gpio
.B [ \-g ]
.B read/write/pwm/mode ...
.B read/write/wb/pwm/mode ...
.PP
.B gpio
.B [ \-p ]
.B read/write/mode
.B read/write/wb
.B ...
.PP
.B gpio
@@ -82,7 +82,14 @@ respective logic levels.
.TP
.B write <pin> <value>
Write the given value (0 or 1) to the pin.
Write the given value (0 or 1) to the pin. You need to set the pin
to output mode first.
.TP
.B wb <value>
Write the given byte to the 8 main GPIO pins. You can prefix it with 0x
to specify a hexadecimal number. You need to set pins to output mode
first.
.TP
.B readall