bmpx8x: rename gy65 to bmpx8x to more properly reflect supported chips

Signed-off-by: Jon Trulson <jtrulson@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Jon Trulson
2015-02-24 16:41:37 -07:00
committed by Mihai Tudor Panu
parent f0dd5f9530
commit 23e47fa3b9
10 changed files with 63 additions and 65 deletions

View File

@ -26,9 +26,9 @@
*/
//Load Barometer module
var gy65 = require('jsupm_gy65');
var bmpx8x = require('jsupm_bmpx8x');
// load this on i2c
var myBarometerObj = new gy65.GY65(0, gy65.ADDR);
var myBarometerObj = new bmpx8x.BMPX8X(0, bmpx8x.ADDR);
var pressure, temperature, altitude, sealevel;
// Print the pressure, altitude, sea level, and
@ -40,11 +40,11 @@ setInterval(function()
var altitude = myBarometerObj.getAltitude();
var sealevel = myBarometerObj.getSealevelPressure();
var GY65results = "pressure value = " + pressure;
GY65results += ", altitude value = " + altitude;
GY65results += ", sealevel value = " + sealevel;
GY65results += ", temperature = " + temperature;
console.log(GY65results);
var BMPX8Xresults = "pressure value = " + pressure;
BMPX8Xresults += ", altitude value = " + altitude;
BMPX8Xresults += ", sealevel value = " + sealevel;
BMPX8Xresults += ", temperature = " + temperature;
console.log(BMPX8Xresults);
}, 100);
// Print message when exiting