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 <noel.eck@intel.com>
This commit is contained in:
Noel Eck 2016-09-09 17:26:58 -07:00
parent 3ab74be66b
commit 878d89eee5
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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: