From 0e606d6ac5dfb1bfa561feeb5967bb51eabd2ea1 Mon Sep 17 00:00:00 2001 From: SV-Zanshin Date: Mon, 25 Jun 2018 18:27:11 +0100 Subject: [PATCH] Changed Directory names --- {Examples => ex}/Set/Set.ino | 0 {Examples => ex}/SetAlarms/SetAlarms.ino | 0 DS3231M.cpp => src/DS3231M.cpp | 4 ++-- DS3231M.h => src/DS3231M.h | 0 4 files changed, 2 insertions(+), 2 deletions(-) rename {Examples => ex}/Set/Set.ino (100%) rename {Examples => ex}/SetAlarms/SetAlarms.ino (100%) rename DS3231M.cpp => src/DS3231M.cpp (99%) rename DS3231M.h => src/DS3231M.h (100%) diff --git a/Examples/Set/Set.ino b/ex/Set/Set.ino similarity index 100% rename from Examples/Set/Set.ino rename to ex/Set/Set.ino diff --git a/Examples/SetAlarms/SetAlarms.ino b/ex/SetAlarms/SetAlarms.ino similarity index 100% rename from Examples/SetAlarms/SetAlarms.ino rename to ex/SetAlarms/SetAlarms.ino diff --git a/DS3231M.cpp b/src/DS3231M.cpp similarity index 99% rename from DS3231M.cpp rename to src/DS3231M.cpp index 017ffc8..2c0c5dc 100644 --- a/DS3231M.cpp +++ b/src/DS3231M.cpp @@ -183,9 +183,9 @@ DS3231M_Class::~DS3231M_Class() {} // *******************************************************************************************************************/ bool DS3231M_Class::begin() { // Start I2C communications // Wire.begin(); // Start I2C as master device // - Wire.beginTransmission(DS3231M_ADDRESS); // Address the DS3231MM // + Wire.beginTransmission(DS3231M_ADDRESS); // Address the DS3231M // uint8_t errorCode = Wire.endTransmission(); // See if there's a device present // - if (errorCode == 0) { // If we have a DS3231MM // + if (errorCode == 0) { // If we have a DS3231M // writeByte(DS3231M_RTCHOUR,readByte(DS3231M_RTCHOUR)&B10111111); // Force use of 24 hour clock // } // of if-then device detected // // else return false; // return error if no device found // diff --git a/DS3231M.h b/src/DS3231M.h similarity index 100% rename from DS3231M.h rename to src/DS3231M.h