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,7 +40,8 @@ class RPiGPIOFactory(LocalPiFactory):
from gpiozero.pins.rpigpio import RPiGPIOFactory
from gpiozero import LED
led = LED(RPiGPIOPin(12))
factory = RPiGPIOFactory()
led = LED(12, pin_factory=factory)
.. _RPi.GPIO: https://pypi.python.org/pypi/RPi.GPIO
"""