Rename pigpiod module to pigpio
This commit is contained in:
Dave Jones
2017-06-21 15:39:50 +01:00
parent d2a7c1434a
commit ffe12362f5
2 changed files with 5 additions and 5 deletions

View File

@@ -45,9 +45,9 @@ class PiGPIOFactory(PiFactory):
* Your script itself doesn't require root privileges; it just needs to
be able to communicate with the daemon
You can construct pigpiod pins manually like so::
You can construct pigpio pins manually like so::
from gpiozero.pins.pigpiod import PiGPIOPin
from gpiozero.pins.pigpio import PiGPIOPin
from gpiozero import LED
led = LED(PiGPIOPin(12))
@@ -56,7 +56,7 @@ class PiGPIOFactory(PiFactory):
accomplish this simply specify the host (and optionally port) when
constructing the pin::
from gpiozero.pins.pigpiod import PiGPIOPin
from gpiozero.pins.pigpio import PiGPIOPin
from gpiozero import LED
from signal import pause

View File

@@ -68,13 +68,13 @@ if sys.version_info[:2] == (3, 2):
__entry_points__ = {
'gpiozero_pin_factories': [
'pigpio = gpiozero.pins.pigpiod:PiGPIOFactory',
'pigpio = gpiozero.pins.pigpio:PiGPIOFactory',
'rpigpio = gpiozero.pins.rpigpio:RPiGPIOFactory',
'rpio = gpiozero.pins.rpio:RPIOFactory',
'native = gpiozero.pins.native:NativeFactory',
'mock = gpiozero.pins.mock:MockFactory',
# Backwards compatible names
'PiGPIOPin = gpiozero.pins.pigpiod:PiGPIOFactory',
'PiGPIOPin = gpiozero.pins.pigpio:PiGPIOFactory',
'RPiGPIOPin = gpiozero.pins.rpigpio:RPiGPIOFactory',
'RPIOPin = gpiozero.pins.rpio:RPIOFactory',
'NativePin = gpiozero.pins.native:NativeFactory',