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