mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2026-04-25 00:13:49 +00:00
Fix #565
Add mock pins docs and tidy up some other bits of the pins docs
This commit is contained in:
20
docs/api_utils.rst
Normal file
20
docs/api_utils.rst
Normal file
@@ -0,0 +1,20 @@
|
||||
=========
|
||||
Utilities
|
||||
=========
|
||||
|
||||
.. currentmodule:: gpiozero
|
||||
|
||||
The GPIO Zero library also contains a database of information about the various
|
||||
revisions of Raspberry Pi. This is used internally to raise warnings when
|
||||
non-physical pins are used, or to raise exceptions when pull-downs are
|
||||
requested on pins with physical pull-up resistors attached. The following
|
||||
functions and classes can be used to query this database:
|
||||
|
||||
.. autofunction:: pi_info
|
||||
|
||||
.. autoclass:: PiBoardInfo
|
||||
|
||||
.. autoclass:: HeaderInfo
|
||||
|
||||
.. autoclass:: PinInfo
|
||||
|
||||
Reference in New Issue
Block a user