Can someone propose to study a sketch using i2c with 2 devices(with different address). I tried to do tricks like in pic microcontrollers but no result. I can easy make the one device work but i don't know how you call each device separately.
I was not clear i think in my question sory about that. What i want to know is how you call device one to extract data and then how to call device 2 to extract data. For example in pic micro there is a write function like i2c_Write(address1) and then you read what you want and you close the i2c like i2c_Stop. After you go to second device liike i2c_Write(address2) and ends like i2c_stop. You put that in a loop(); and you read the devices. I am looking how you doing it in arduino coding.
The Arduino Mega has 10k pullup resistors on the board for SDA and SCL to 5V. So there can leak current from the 5V via the 10k resistor into the SDA and SCL pin of the BMP280.
The ATmega microcontrollers need 3.5V at SDA and SCL to see it as a high level.
Can you give a link to your BMP280 module ? (a link to where you bought it).