mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 17:50:37 +00:00
Add pin_factory to all relevant class docs
Also tell a whole load of lies about what's a keyword-only arg. In the vast majority of cases, pin_factory (and other args) *aren't* keyword-only ... but we'd really like them to be, it's just difficult while maintaining py2 compatibility.
This commit is contained in:
@@ -64,6 +64,10 @@ omit any arguments from either scheme. The defaults are:
|
||||
* *clock_pin* defaults to 11, *mosi_pin* defaults to 10, *miso_pin* defaults
|
||||
to 9, and *select_pin* defaults to 8.
|
||||
|
||||
* As with other GPIO based devices you can optionally specify a *pin_factory*
|
||||
argument overriding the default pin factory (see :doc:`api_pins` for more
|
||||
information).
|
||||
|
||||
Hence the following constructors are all equivalent::
|
||||
|
||||
from gpiozero import MCP3008
|
||||
|
||||
Reference in New Issue
Block a user