Changing I2C address in library

Sorry, new to the forum so apologies if I’m doing this wrong.

Trying to use the Adafruit_BMP280 library but just need to change the address from 0x77 to 0x76 but can’t for the life of me figure out how to do it. Tried adding to tabs in the main code, editing the main library, etc. Failing miserably.

The library provides this function

bool  begin(uint8_t addr = BMP280_ADDRESS);

Which allows you to select an address. If you omit it, it’ll just take the default.

1 Like

Thanks a lot. Seems obvious once you point it out. Much appreciated.

1 Like