Change standart I2C pins in esp8266

This is how you can change standart I2C pins in esp8266. I’ve connected D5 with SCL(of GY-521 module) and D6 with SDA, 3V->VCC, GND->GND. This is code: #include “Wire.h” const int MPU_addr=0x68; // I2C address of the MPU-6050 int16_t AcX,AcY,AcZ,Tmp,GyX,GyY,GyZ; void setup() { Wire.begin(12,14); Serial.begin(115200); check_I2c(MPU_addr); // Check that there is an MPU Wire.beginTransmission(MPU_addr); Wire.write(0x6B);

Читать далее

Any ideas? Please, contact us: anton.katrus@ukr.net, (068)322-00-67