• Does your module have pullup resistors on it? I2C needs them to work.

    However, you could try software I2C:

    var i2c = new I2C();
    i2c.setup({scl:D2,sda:D1});
    var bme = require("BMP280").connect(i2c);
    console.log(bme.getData());
    

    Software I2C can use the chip's internal pullups, so might be able to work without external ones.

About

Avatar for Gordon @Gordon started