Lines Matching refs:digitalAccelerometer
28 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();
54 outputStr = "Raw: X = " + digitalAccelerometer.intp_value(x) +
55 " Y = " + digitalAccelerometer.intp_value(y) +
56 " Z = " + digitalAccelerometer.intp_value(z);
61 + roundNum(digitalAccelerometer.floatp_value(ax), 6)
62 + " AY = " + roundNum(digitalAccelerometer.floatp_value(ay), 6)
63 + " AZ = " + roundNum(digitalAccelerometer.floatp_value(az), 6);
81 digitalAccelerometer.delete_intp(x);
82 digitalAccelerometer.delete_intp(y);
83 digitalAccelerometer.delete_intp(z);
85 digitalAccelerometer.delete_floatp(ax);
86 digitalAccelerometer.delete_floatp(ay);
87 digitalAccelerometer.delete_floatp(az);