From 4db57cd0ac6995f59b74e7d4ae1129a62e0e74be Mon Sep 17 00:00:00 2001 From: Ben Nuttall Date: Fri, 3 Jun 2016 16:37:11 +0100 Subject: [PATCH] Use keyword args for echo & trigger in DistanceSensor example --- gpiozero/input_devices.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpiozero/input_devices.py b/gpiozero/input_devices.py index 05682cb..7e89709 100644 --- a/gpiozero/input_devices.py +++ b/gpiozero/input_devices.py @@ -534,7 +534,7 @@ class DistanceSensor(SmoothedInputDevice): from gpiozero import DistanceSensor from time import sleep - sensor = DistanceSensor(18, 17) + sensor = DistanceSensor(echo=18, trigger=17) while True: print('Distance: ', sensor.distance * 100) sleep(1)