Merge pull request #504 from RPi-Distro/pinout-cli-tool

Add pinout cli tool, close #444, close #497
This commit is contained in:
Dave Jones
2017-06-13 13:22:52 +01:00
committed by GitHub
6 changed files with 131 additions and 0 deletions

26
docs/cli_tools.rst Normal file
View File

@@ -0,0 +1,26 @@
==================
Command-line Tools
==================
Pinout
======
The gpiozero package contains a database of information about the various
revisions of Raspberry Pi. This is queried by the ``pinout`` command-line
tool to output details of the GPIO pins available.
Unless specified, the revision of the current device will be detected. A
particular revision may be selected with the --revision command-line
option. For example::
pinout --revision 000d
By default, the output will include ANSI color codes if run in a color-capable
terminal. This behaviour may be overridden by the --color or --monochrome
options to force colored or non-colored output, respectively. For example::
pinout --monochrome
Full usage details are available with::
pinout --help

View File

@@ -18,6 +18,7 @@ Table of Contents
api_tools
api_pins
api_exc
cli_tools
source_values
changelog
license