grove: Updated 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 e58c651b67
commit 3ab74be66b
4 changed files with 33 additions and 33 deletions

View File

@ -22,11 +22,11 @@
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
// Load Grove module
var groveSensor = require('jsupm_grove');
// Load light module
var sensor = require('jsupm_light');
// Create the light sensor object using AIO pin 0
var light = new groveSensor.Light(0);
var light = new sensor.Light(0);
// Read the input and print both the raw value and a rough lux value,
// waiting one second between readings

View File

@ -22,10 +22,10 @@
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
var upm_grove = require('jsupm_grove');
var upm_slide = require('jsupm_slide');
//setup access analog input Analog pin #0 (A0)
var Slide = new upm_grove.Slide(0);
var Slide = new upm_slide.Slide(0);
loop();