Skip to content

reset()

Arnd edited this page Aug 28, 2017 · 1 revision

This function accepts no parameter and issues the DS1631 internal reset command, which resets the device to the state it is in at power-up.


Example:

DS1631_Class DS1631; // Create an instance of the DS1631
...
void setup() {
  Serial.begin(SERIAL_SPEED);
  while (!DS1631.begin()) { // Initialize I2C communications
    Serial.println("Unable to find DS1631. Checking again in 3 seconds.");
    delay(3000);
  } // of loop until device is located
  for (uint8_t i=0;i<DS1631.thermometers;i++) {
    DS1631.reset(); // Reset device
  } // of for each device loop
...
} // of setup
Clone this wiki locally