Home
last modified time | relevance | path

Searched refs:digitalAccelerometer (Results 1 – 2 of 2) sorted by relevance

/hardware/bsp/intel/peripheral/libupm/examples/javascript/
Dmma7660.js28 var digitalAccelerometer = require('jsupm_mma7660'); variable
31 var myDigitalAccelerometer = new digitalAccelerometer.MMA7660(
32 digitalAccelerometer.MMA7660_I2C_BUS,
33 digitalAccelerometer.MMA7660_DEFAULT_I2C_ADDR);
39 myDigitalAccelerometer.setSampleRate(digitalAccelerometer.MMA7660.AUTOSLEEP_64);
45 x = digitalAccelerometer.new_intp();
46 y = digitalAccelerometer.new_intp();
47 z = digitalAccelerometer.new_intp();
50 ax = digitalAccelerometer.new_floatp();
51 ay = digitalAccelerometer.new_floatp();
[all …]
Dh3lis331dl.js28 var digitalAccelerometer = require('jsupm_h3lis331dl'); variable
31 var myDigitalAccelerometer = new digitalAccelerometer.H3LIS331DL(
32 digitalAccelerometer.H3LIS331DL_I2C_BUS,
33 digitalAccelerometer.H3LIS331DL_DEFAULT_I2C_ADDR);
39 x = digitalAccelerometer.new_intp();
40 y = digitalAccelerometer.new_intp();
41 z = digitalAccelerometer.new_intp();
44 ax = digitalAccelerometer.new_floatp();
45 ay = digitalAccelerometer.new_floatp();
46 az = digitalAccelerometer.new_floatp();
[all …]