mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 17:50:37 +00:00
- switch to using sys.exit instead of exit - always exit with error-code 1 - don't bother testing error-codes - documentation wording tweak
27 lines
780 B
ReStructuredText
27 lines
780 B
ReStructuredText
==================
|
|
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
|