We tried determining the I2C address with another board (esp8266) with this script:
#include <Wire.h>
void setup() {
Serial.begin(115200);
delay(1000);
Serial.println();
Serial.println();
scanPortCombi(4, 5);
}
void scanPortCombi(int sda, int scl){
Serial.print("Scanning (SDA : SCL) - ");
Serial.print(sda);
Serial.print(" : ");
Serial.print(scl);
Serial.print(" - ");
Wire.begin(sda, scl);
check_if_exist_I2C();
}
void check_if_exist_I2C() {
byte error, address;
int nDevices;
nDevices = 0;
for (address = 1; address < 127; address++ ) {
// The i2c_scanner uses the return value of
// the Write.endTransmisstion to see if
// a device did acknowledge to the address.
Wire.beginTransmission(address);
error = Wire.endTransmission();
if (error == 0){
Serial.print(“I2C device found at address 0x”);
if (address < 16)
Serial.print(“0”);
Serial.print(address, HEX);
Serial.println(" !");
nDevices++;
} else if (error == 4) {
Serial.print(“Unknow error at address 0x”);
if (address < 16)
Serial.print(“0”);
Serial.println(address, HEX);
}
} //for loop
if (nDevices == 0)
Serial.println(“No I2C devices found”);
else
Serial.println(“**********************************\n”);
//delay(1000); // wait 1 seconds for next scan, did not find it necessary
}
void loop() {
}
Serial:
10:28:15.117 → Scanning (SDA : SCL) - 4 : 5 - Unknow error at address 0x01
10:28:15.149 → Unknow error at address 0x02
10:28:15.149 → Unknow error at address 0x03
10:28:15.149 → Unknow error at address 0x04
10:28:15.149 → Unknow error at address 0x05
10:28:15.149 → Unknow error at address 0x06
10:28:15.149 → Unknow error at address 0x07
10:28:15.149 → Unknow error at address 0x08
10:28:15.149 → Unknow error at address 0x09
10:28:15.149 → Unknow error at address 0x0A
10:28:15.149 → Unknow error at address 0x0B
10:28:15.149 → Unknow error at address 0x0C
10:28:15.149 → Unknow error at address 0x0D
10:28:15.181 → Unknow error at address 0x0E
10:28:15.181 → Unknow error at address 0x0F
10:28:15.181 → Unknow error at address 0x10
10:28:15.181 → Unknow error at address 0x11
10:28:15.181 → Unknow error at address 0x12
10:28:15.181 → Unknow error at address 0x13
10:28:15.181 → Unknow error at address 0x14
10:28:15.181 → Unknow error at address 0x15
10:28:15.181 → Unknow error at address 0x16
10:28:15.181 → Unknow error at address 0x17
10:28:15.181 → Unknow error at address 0x18
10:28:15.181 → Unknow error at address 0x19
10:28:15.212 → Unknow error at address 0x1A
10:28:15.212 → Unknow error at address 0x1B
10:28:15.212 → Unknow error at address 0x1C
10:28:15.212 → Unknow error at address 0x1D
10:28:15.212 → Unknow error at address 0x1E
10:28:15.212 → Unknow error at address 0x1F
10:28:15.212 → Unknow error at address 0x20
10:28:15.212 → Unknow error at address 0x21
10:28:15.212 → Unknow error at address 0x22
10:28:15.212 → Unknow error at address 0x23
10:28:15.212 → Unknow error at address 0x24
10:28:15.212 → Unknow error at address 0x25
10:28:15.248 → Unknow error at address 0x26
10:28:15.248 → Unknow error at address 0x27
10:28:15.248 → Unknow error at address 0x28
10:28:15.248 → Unknow error at address 0x29
10:28:15.248 → Unknow error at address 0x2A
10:28:15.248 → Unknow error at address 0x2B
10:28:15.248 → Unknow error at address 0x2C
10:28:15.248 → Unknow error at address 0x2D
10:28:15.248 → Unknow error at address 0x2E
10:28:15.248 → Unknow error at address 0x2F
10:28:15.248 → Unknow error at address 0x30
10:28:15.248 → Unknow error at address 0x31
10:28:15.248 → Unknow error at address 0x32
10:28:15.279 → Unknow error at address 0x33
10:28:15.279 → Unknow error at address 0x34
10:28:15.279 → Unknow error at address 0x35
10:28:15.279 → Unknow error at address 0x36
10:28:15.279 → Unknow error at address 0x37
10:28:15.279 → Unknow error at address 0x38
10:28:15.279 → Unknow error at address 0x39
10:28:15.279 → Unknow error at address 0x3A
10:28:15.279 → Unknow error at address 0x3B
10:28:15.279 → Unknow error at address 0x3C
10:28:15.279 → Unknow error at address 0x3D
10:28:15.279 → Unknow error at address 0x3E
10:28:15.311 → Unknow error at address 0x3F
10:28:15.311 → Unknow error at address 0x40
10:28:15.311 → Unknow error at address 0x41
10:28:15.311 → Unknow error at address 0x42
10:28:15.311 → Unknow error at address 0x43
10:28:15.311 → Unknow error at address 0x44
10:28:15.311 → Unknow error at address 0x45
10:28:15.311 → Unknow error at address 0x46
10:28:15.311 → Unknow error at address 0x47
10:28:15.311 → Unknow error at address 0x48
10:28:15.311 → Unknow error at address 0x49
10:28:15.311 → Unknow error at address 0x4A
10:28:15.311 → Unknow error at address 0x4B
10:28:15.343 → Unknow error at address 0x4C
10:28:15.343 → Unknow error at address 0x4D
10:28:15.343 → Unknow error at address 0x4E
10:28:15.343 → Unknow error at address 0x4F
10:28:15.343 → Unknow error at address 0x50
10:28:15.343 → Unknow error at address 0x51
10:28:15.343 → Unknow error at address 0x52
10:28:15.343 → Unknow error at address 0x53
10:28:15.343 → Unknow error at address 0x54
10:28:15.343 → Unknow error at address 0x55
10:28:15.343 → Unknow error at address 0x56
10:28:15.343 → Unknow error at address 0x57
10:28:15.374 → Unknow error at address 0x58
10:28:15.374 → Unknow error at address 0x59
10:28:15.374 → Unknow error at address 0x5A
10:28:15.374 → Unknow error at address 0x5B
10:28:15.374 → Unknow error at address 0x5C
10:28:15.374 → Unknow error at address 0x5D
10:28:15.374 → Unknow error at address 0x5E
10:28:15.374 → Unknow error at address 0x5F
10:28:15.374 → Unknow error at address 0x60
10:28:15.374 → Unknow error at address 0x61
10:28:15.374 → Unknow error at address 0x62
10:28:15.374 → Unknow error at address 0x63
10:28:15.374 → Unknow error at address 0x64
10:28:15.407 → Unknow error at address 0x65
10:28:15.407 → Unknow error at address 0x66
10:28:15.407 → Unknow error at address 0x67
10:28:15.407 → Unknow error at address 0x68
10:28:15.407 → Unknow error at address 0x69
10:28:15.407 → Unknow error at address 0x6A
10:28:15.407 → Unknow error at address 0x6B
10:28:15.407 → Unknow error at address 0x6C
10:28:15.407 → Unknow error at address 0x6D
10:28:15.407 → Unknow error at address 0x6E
10:28:15.407 → Unknow error at address 0x6F
10:28:15.407 → Unknow error at address 0x70
10:28:15.439 → Unknow error at address 0x71
10:28:15.439 → Unknow error at address 0x72
10:28:15.439 → Unknow error at address 0x73
10:28:15.439 → Unknow error at address 0x74
10:28:15.439 → Unknow error at address 0x75
10:28:15.439 → Unknow error at address 0x76
10:28:15.439 → Unknow error at address 0x77
10:28:15.439 → Unknow error at address 0x78
10:28:15.439 → Unknow error at address 0x79
10:28:15.439 → Unknow error at address 0x7A
10:28:15.439 → Unknow error at address 0x7B
10:28:15.439 → Unknow error at address 0x7C
10:28:15.485 → Unknow error at address 0x7D
10:28:15.485 → Unknow error at address 0x7E
10:28:15.485 → No I2C devices found
The ESP8266 Pinout is attached.