User Manual
Table Of Contents
- 13 -
Wire.write(0x11); // Send register address
Wire.endTransmission(false); // I2C restart
Wire.requestFrom(0x68, 2); // Request 2 bytes from DS3231 and release I2C
//bus at end of reading
temperature_msb = Wire.read(); // Read temperature MSB
temperature_lsb = Wire.read(); // Read temperature LSB
display_day();
DS3231_display(); // Diaplay time & calendar
delay(50); // Wait 50ms
}
Step 9: Use the hardware connected with the data cable to connect to the
computer, and then set the hardware parameters in arduinoIDE. The
specific settings are shown in the figure below.