// Test for I2C read

#include <Wire.h>

void setup() 
{
  Serial.begin(115200);
  Serial.print("SDA=");
  Serial.println(SDA);
  Serial.print("SCL=");
  Serial.print(SCL);

  Wire.begin();
  Wire.requestFrom(0x68,1);
}

void loop() 
{
  delay(10);
}
Loading
st-nucleo-l031k6
GND5VSDASCLSQWRTCDS1307+
D0D1D2D3D4D5D6D7GNDLOGIC