i am using a Puck.js
That definitely did the trick, great! Guess I will have to read up on why.
So I don't need to do the pinMode lines?
I am getting a reading, but somehow they don't change. I have had a sensor with a similar chip before and they normally are very sensitive. Am I missing something?
var i2c = new I2C();
i2c.setup({scl:D2,sda:D1});
var bme = require("BMP280").connect(i2c);
console.log(bme.getData());
setInterval("console.log(bme.getData())",1000);
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.
i am using a Puck.js
That definitely did the trick, great! Guess I will have to read up on why.
So I don't need to do the pinMode lines?
I am getting a reading, but somehow they don't change. I have had a sensor with a similar chip before and they normally are very sensitive. Am I missing something?