mirror of
https://github.com/eclipse/upm.git
synced 2025-07-02 01:41:12 +03:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user