Copyright © https://mongoose-os.com

Mongoose OS Forum

frame
ATTENTION! This forum has moved to:

https://community.mongoose-os.com

Do not post any new messages.

BME280 not detected using native JS BME 280 library

I connected the bme280 to pin 26,27 and to 3.3v and gnd pins for i2c .. and the address for my bme280 is 0X77..
I have created the instance using the command below..
BME280.createI2C(0x77);

However i get a negative -128 for both humidity and temperature indicating that the bme280 is not detected.. is there something i'm missing ?

Comments

  • What is your mos version?
    Either update to 2.12.1, or set

      - ["i2c.enable", true]
      - ["i2c1.enable", false]
    

    I suppose you already have

    - ["i2c.sda_gpio", x]
    - ["i2c.scl_gpio", y]
    

    in your mos.yml.

  • Thank You.. I had set - ["i2c.enable", true] but i had set the wrong pins for gpio in mos.ym and i corrected it.. It worked.. Thank You.. and i know you created this library and Thank You for this and it is so easy to work with.

Sign In or Register to comment.