mirror of
https://github.com/eclipse/upm.git
synced 2025-03-24 01:10:22 +03:00
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:
parent
3ab74be66b
commit
878d89eee5
@ -21,10 +21,10 @@
|
|||||||
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
import time
|
import time
|
||||||
import pyupm_grove as grove
|
import pyupm_light as light
|
||||||
|
|
||||||
# Create the light sensor object using AIO pin 0
|
# 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,
|
# Read the input and print both the raw value and a rough lux value,
|
||||||
# waiting one second between readings
|
# waiting one second between readings
|
||||||
|
@ -21,10 +21,10 @@
|
|||||||
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
from time import sleep
|
from time import sleep
|
||||||
import pyupm_grove as grove
|
import pyupm_slide as slide
|
||||||
|
|
||||||
# New Grove Slider on AIO pin 0
|
# New Grove Slider on AIO pin 0
|
||||||
slider = grove.Slide(0)
|
slider = slide.Slide(0)
|
||||||
|
|
||||||
# Loop indefinitely
|
# Loop indefinitely
|
||||||
while True:
|
while True:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user