mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 17:50:37 +00:00
@@ -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/
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user