/hardware/bsp/intel/peripheral/libupm/examples/javascript/ |
ak8975.js | 29 var sensorObj = require('jsupm_mpu9150'); 32 var sensor = new sensorObj.AK8975(); 37 var x = new sensorObj.new_floatp(); 38 var y = new sensorObj.new_floatp(); 39 var z = new sensorObj.new_floatp(); 47 console.log("Magnetometer: MX: " + sensorObj.floatp_value(x) + 48 " MY: " + sensorObj.floatp_value(y) + 49 " MZ: " + sensorObj.floatp_value(z)); 59 sensorObj.cleanUp(); 60 sensorObj = null [all...] |
mpu60x0.js | 29 var sensorObj = require('jsupm_mpu9150'); 32 var sensor = new sensorObj.MPU60X0(); 37 var x = new sensorObj.new_floatp(); 38 var y = new sensorObj.new_floatp(); 39 var z = new sensorObj.new_floatp(); 47 console.log("Accelerometer: AX: " + sensorObj.floatp_value(x) + 48 " AY: " + sensorObj.floatp_value(y) + 49 " AZ: " + sensorObj.floatp_value(z)); 52 console.log("Gyroscope: GX: " + sensorObj.floatp_value(x) + 53 " AY: " + sensorObj.floatp_value(y) + [all...] |
lm35.js | 29 var sensorObj = require('jsupm_lm35'); 33 var sensor = new sensorObj.LM35(0); 46 sensorObj.cleanUp(); 47 sensorObj = null;
|
loudness.js | 29 var sensorObj = require('jsupm_loudness'); 33 var sensor = new sensorObj.Loudness(0, 5.0); 47 sensorObj.cleanUp(); 48 sensorObj = null;
|
lsm9ds0.js | 29 var sensorObj = require('jsupm_lsm9ds0'); 33 var sensor = new sensorObj.LSM9DS0(); 38 var x = new sensorObj.new_floatp(); 39 var y = new sensorObj.new_floatp(); 40 var z = new sensorObj.new_floatp(); 48 console.log("Accelerometer: AX: " + sensorObj.floatp_value(x) + 49 " AY: " + sensorObj.floatp_value(y) + 50 " AZ: " + sensorObj.floatp_value(z)); 53 console.log("Gyroscope: GX: " + sensorObj.floatp_value(x) + 54 " AY: " + sensorObj.floatp_value(y) + [all...] |
mg811.js | 29 var sensorObj = require('jsupm_mg811'); 34 var sensor = new sensorObj.MG811(0, 2, 5.0); 48 sensorObj.cleanUp(); 49 sensorObj = null;
|
mpu9150.js | 29 var sensorObj = require('jsupm_mpu9150'); 32 var sensor = new sensorObj.MPU9150(); 37 var x = new sensorObj.new_floatp(); 38 var y = new sensorObj.new_floatp(); 39 var z = new sensorObj.new_floatp(); 47 console.log("Accelerometer: AX: " + sensorObj.floatp_value(x) + 48 " AY: " + sensorObj.floatp_value(y) + 49 " AZ: " + sensorObj.floatp_value(z)); 52 console.log("Gyroscope: GX: " + sensorObj.floatp_value(x) + 53 " AY: " + sensorObj.floatp_value(y) + [all...] |
mpu9250.js | 29 var sensorObj = require('jsupm_mpu9150'); 32 var sensor = new sensorObj.MPU9250(); 37 var x = new sensorObj.new_floatp(); 38 var y = new sensorObj.new_floatp(); 39 var z = new sensorObj.new_floatp(); 47 console.log("Accelerometer: AX: " + sensorObj.floatp_value(x) + 48 " AY: " + sensorObj.floatp_value(y) + 49 " AZ: " + sensorObj.floatp_value(z)); 52 console.log("Gyroscope: GX: " + sensorObj.floatp_value(x) + 53 " AY: " + sensorObj.floatp_value(y) + [all...] |
wheelencoder.js | 29 var sensorObj = require('jsupm_wheelencoder'); 32 var sensor = new sensorObj.WheelEncoder(2); 49 sensorObj.cleanUp(); 50 sensorObj = null;
|
sm130.js | 29 var sensorObj = require('jsupm_sm130'); 32 var sensor = new sensorObj.SM130(); 66 sensorObj.cleanUp(); 67 sensorObj = null;
|
grovegprs.js | 29 var sensorObj = require('jsupm_grovegprs'); 64 var sensor = new sensorObj.GroveGPRS(0); 110 sensorObj.cleanUp(); 111 sensorObj = null;
|
/hardware/bsp/intel/peripheral/libupm/examples/python/ |
ak8975.py | 25 import pyupm_mpu9150 as sensorObj 28 sensor = sensorObj.AK8975() 46 x = sensorObj.new_floatp() 47 y = sensorObj.new_floatp() 48 z = sensorObj.new_floatp() 53 print "Magnetometer: MX: ", sensorObj.floatp_value(x), 54 print " MY: ", sensorObj.floatp_value(y), 55 print " MZ: ", sensorObj.floatp_value(z)
|
mpu60x0.py | 25 import pyupm_mpu9150 as sensorObj 28 sensor = sensorObj.MPU60X0() 46 x = sensorObj.new_floatp() 47 y = sensorObj.new_floatp() 48 z = sensorObj.new_floatp() 53 print "Accelerometer: AX: ", sensorObj.floatp_value(x), 54 print " AY: ", sensorObj.floatp_value(y), 55 print " AZ: ", sensorObj.floatp_value(z) 58 print "Gyroscope: GX: ", sensorObj.floatp_value(x), 59 print " GY: ", sensorObj.floatp_value(y) [all...] |
lsm9ds0.py | 25 import pyupm_lsm9ds0 as sensorObj 29 sensor = sensorObj.LSM9DS0() 47 x = sensorObj.new_floatp() 48 y = sensorObj.new_floatp() 49 z = sensorObj.new_floatp() 54 print "Accelerometer: AX: ", sensorObj.floatp_value(x), 55 print " AY: ", sensorObj.floatp_value(y), 56 print " AZ: ", sensorObj.floatp_value(z) 59 print "Gyroscope: GX: ", sensorObj.floatp_value(x), 60 print " GY: ", sensorObj.floatp_value(y) [all...] |
mpu9150.py | 25 import pyupm_mpu9150 as sensorObj 28 sensor = sensorObj.MPU9150() 46 x = sensorObj.new_floatp() 47 y = sensorObj.new_floatp() 48 z = sensorObj.new_floatp() 53 print "Accelerometer: AX: ", sensorObj.floatp_value(x), 54 print " AY: ", sensorObj.floatp_value(y), 55 print " AZ: ", sensorObj.floatp_value(z) 58 print "Gyroscope: GX: ", sensorObj.floatp_value(x), 59 print " GY: ", sensorObj.floatp_value(y) [all...] |
mpu9250.py | 25 import pyupm_mpu9150 as sensorObj 28 sensor = sensorObj.MPU9250() 46 x = sensorObj.new_floatp() 47 y = sensorObj.new_floatp() 48 z = sensorObj.new_floatp() 53 print "Accelerometer: AX: ", sensorObj.floatp_value(x), 54 print " AY: ", sensorObj.floatp_value(y), 55 print " AZ: ", sensorObj.floatp_value(z) 58 print "Gyroscope: GX: ", sensorObj.floatp_value(x), 59 print " GY: ", sensorObj.floatp_value(y) [all...] |
lm35.py | 25 import pyupm_lm35 as sensorObj 29 sensor = sensorObj.LM35(0)
|
loudness.py | 25 import pyupm_loudness as sensorObj 29 sensor = sensorObj.Loudness(0, 5.0)
|
mg811.py | 25 import pyupm_mg811 as sensorObj 30 sensor = sensorObj.MG811(0, 2, 5.0)
|
wheelencoder.py | 25 import pyupm_wheelencoder as sensorObj 28 sensor = sensorObj.WheelEncoder(2)
|
sm130.py | 25 import pyupm_sm130 as sensorObj 28 sensor = sensorObj.SM130()
|
grovegprs.py | 25 import pyupm_grovegprs as sensorObj 28 sensor = sensorObj.GroveGPRS(0)
|