Getting i2c_scan to run

I wanted to run the example i2c_scan.ino on a CubeCell AB02 in conjunction with a BMP180, which I connected to the SCL and SDA pins, such that the BMP180 is attached to the same line as the display.

At first I had no luck with the example provided. When I had made the following changes, it worked in the end:


Maybe the example was for a LoRa32 board or whatever.
For a newbie, however, it could be difficult to get examples running if they had not been tested with/adapted to the target system.


maybe you can refer this code: