Lines Matching refs:digitalAccelerometer
28 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();
52 az = digitalAccelerometer.new_floatp();
59 outputStr = "Raw values: x = " + digitalAccelerometer.intp_value(x) +
60 " y = " + digitalAccelerometer.intp_value(y) +
61 " z = " + digitalAccelerometer.intp_value(z);
66 + roundNum(digitalAccelerometer.floatp_value(ax), 6)
67 + "g y = " + roundNum(digitalAccelerometer.floatp_value(ay), 6)
68 + "g z = " + roundNum(digitalAccelerometer.floatp_value(az), 6) + "g";
86 digitalAccelerometer.delete_intp(x);
87 digitalAccelerometer.delete_intp(y);
88 digitalAccelerometer.delete_intp(z);
90 digitalAccelerometer.delete_floatp(ax);
91 digitalAccelerometer.delete_floatp(ay);
92 digitalAccelerometer.delete_floatp(az);