尝试在SnapDragon 410c w 96板/传感器 - 夹层上使用Grove Temp模块时出错

时间:2017-10-07 20:16:35

标签: javascript qualcomm

每当我尝试运行我的JS代码时,我都会收到错误消息,说我正在传递构造_exports_GroveTemp的非法参数

代码:

var mraa = require('/usr/local/lib/node_modules/mraa');
var groveSensor = require('/usr/local/lib/node_modules/jsupm_grove');
console.log(groveSensor)

// Create the temperature sensor object using AIO pin 0
var temp = new groveSensor.GroveTemp(1)
console.log(temp.name());

0 个答案:

没有答案