mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2026-04-25 00:13:49 +00:00
Correct remote GPIO recipes
This commit is contained in:
@@ -3,5 +3,5 @@ from gpiozero import TrafficHat
|
||||
from gpiozero.pins.pigpio import PiGPIOFactory
|
||||
from time import sleep
|
||||
|
||||
gpiozero.Device._set_pin_factory(PiGPIOFactory(host='192.168.1.3'))
|
||||
gpiozero.Device.pin_factory = PiGPIOFactory(host='192.168.1.3')
|
||||
th = TrafficHat() # traffic hat on 192.168.1.3 using remote pins
|
||||
|
||||
Reference in New Issue
Block a user