Skip to content

kHz32()

Arnd edited this page Aug 20, 2017 · 1 revision

This function is called to make the "32KHZ" Pin of the DS3131M output a 32.768kHz signal.

Example:

...
DS3231M_Class DS3231M; // Create an instance of the DS3231M
...
void setup() {
  Serial.begin(SERIAL_SPEED);
  while (!DS3231M.begin()) { // Initialize RTC communications
    Serial.println("Unable to find DS3231M. Checking again in 1 second.");
    delay(1000);
  } // of loop until device is located
 DS3231M.kHz32(); // output 32.768kHz signal on 32KHZ pin 
...
Clone this wiki locally