From 878d89eee571985bd88aefd4fe56ce095caa34c9 Mon Sep 17 00:00:00 2001 From: Noel Eck Date: Fri, 9 Sep 2016 17:26:58 -0700 Subject: [PATCH] grove: Updated python/java/script tests for light and slide sensor. Since these were split out from the grove lib, they need to load their own library, ie Light now comes from upm_light.so. Signed-off-by: Noel Eck --- examples/python/light.py | 4 ++-- examples/python/slide.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/python/light.py b/examples/python/light.py index 337c976e..3a7f74f3 100644 --- a/examples/python/light.py +++ b/examples/python/light.py @@ -21,10 +21,10 @@ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. import time -import pyupm_grove as grove +import pyupm_light as light # Create the light sensor object using AIO pin 0 -light = grove.Light(0) +light = light.Light(0) # Read the input and print both the raw value and a rough lux value, # waiting one second between readings diff --git a/examples/python/slide.py b/examples/python/slide.py index 01ad1b20..0bc5be7c 100644 --- a/examples/python/slide.py +++ b/examples/python/slide.py @@ -21,10 +21,10 @@ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. from time import sleep -import pyupm_grove as grove +import pyupm_slide as slide # New Grove Slider on AIO pin 0 -slider = grove.Slide(0) +slider = slide.Slide(0) # Loop indefinitely while True: