I am using the standalone IDE, judging by the load time it gets the module from the 'require' statement just fine. I also put the module in the module directory, no difference.
Any idea what I am doing wrong? Thanks..
Here is the console output:
_____ _
| __|___ ___ ___ _ _|_|___ ___
| __|_ -| . | _| | | | | . |
|_____|___| _|_| |___|_|_|_|___|
|_| http://espruino.com
1v93 Copyright 2016 G.Williams
>Uncaught InternalError: I2C Write Error 33281
at line 1 col 23
this.i2c.writeTo(119,a),this.i2c.readFrom(119,1)[0];
^
in function "read8" called from line 1 col 99
...oss=3);var b=this.read8(208);if(b!=85)return console.log('Ba...
^
in function "BMP085" called from line 1 col 15
new BMP085(a,b);
^
in function "connect" called from line 1 col 41
var bmp = require("BMP085").connect(I2C1);
^
=undefined
Uncaught Error: Field or method "getPressure" does not already exist, and can't create it on undefined
at line 1 col 4
bmp.getPressure(function(d) {
^
in function called from system
Uncaught Error: Field or method "getPressure" does not already exist, and can't create it on undefined
at line 1 col 4
bmp.getPressure(function(d) {
^
in function called from system
Uncaught Error: Field or method "getPressure" does not already exist, and can't create it on undefined
at line 1 col 4
bmp.getPressure(function(d) {
^
in function called from system
Uncaught Error: Field or method "getPressure" does not already exist, and can't create it on undefined
at line 1 col 4
bmp.getPressure(function(d) {
^
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
First of all, I am assuming the BMP280 can work with the module BMP085, just like the BMP180 did..?
Here is how I connected it, D1 and D2, GND and 3V
I am trying to use the code from this page:
https://www.espruino.com/BMP085
The console gives me a range of errors though.
I am using the standalone IDE, judging by the load time it gets the module from the 'require' statement just fine. I also put the module in the module directory, no difference.
Any idea what I am doing wrong? Thanks..
Here is the console output: