Update examples in pin factory docs so they work correctly.
This commit is contained in:
Dave Jones
2017-07-14 13:51:29 +01:00
parent 93a1f529e8
commit eafae5c31a
5 changed files with 18 additions and 14 deletions

View File

@@ -40,10 +40,11 @@ class RPIOFactory(LocalPiFactory):
You can construct RPIO pins manually like so::
from gpiozero.pins.rpio import RPIOPin
from gpiozero.pins.rpio import RPIOFactory
from gpiozero import LED
led = LED(RPIOPin(12))
factory = RPIOFactory()
led = LED(12, pin_factory=factory)
.. _RPIO: https://pythonhosted.org/RPIO/
"""