• The code, with
    D30 at 0 connected to SDO and
    D31 at 1 connected to CSB.

    digitalWrite(D30,0);
    digitalWrite(D31,1);
    
    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);
    

    giving me the same figures as if nothing was connected:

     _____                 _
    |   __|___ ___ ___ _ _|_|___ ___
    |   __|_ -| . |  _| | | |   | . |
    |_____|___|  _|_| |___|_|_|_|___|
              |_| http://espruino.com
     1v93 Copyright 2016 G.Williams
    >{ "temp": -0.00000017881, "pressure": 0.01541300212 }
    =undefined
    { "temp": -0.00000017881, "pressure": 0.01541300212 }
    { "temp": -0.00000017881, "pressure": 0.01541300212 }
    { "temp": -0.00000017881, "pressure": 0.01541300212 }
    { "temp": -0.00000017881, "pressure": 0.01541300212 }
    { "temp": -0.00000017881, "pressure": 0.01541300212 }
    { "temp": -0.00000017881, "pressure": 0.01541300212 }
    >reset();
    =undefined
    

    I don't see where I am different from the BMP280 module page ...

    I was checking with a buzzer and i do see that the beep coming from 3v and GND off the Puck is a lot stronger than the D30 D31 combination, kinda weak.. but that may be normal

About

Avatar for user79451 @user79451 started