Izvorne datoteke za TinyRTC DS1307 sa I2C komunikacijom.

Dependents:   Detektor_Pokreta Dino_Martic_Programski

Revision:
12:67d9685eaeb0
Parent:
11:ccfd683953ae
--- a/Rtc_Ds1307.cpp	Thu May 25 15:32:11 2017 +0000
+++ b/Rtc_Ds1307.cpp	Mon Jan 20 13:01:21 2020 +0000
@@ -2,11 +2,11 @@
 #include "Rtc_Ds1307.h"
 
 #ifndef DEBUG
-//#define DEBUG
+#define DEBUG
 #endif
 #include "debug.h"
 
-const char *Rtc_Ds1307::m_weekDays[] = { "Saturday", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday" };    
+const char *Rtc_Ds1307::m_weekDays[] = { "Ponedjeljak", "Utorak", "Srijeda", "Cetvrtak", "Petak", "Subota", "Nedjelja" };    
 
 
 Rtc_Ds1307::Rtc_Ds1307(PinName sda, PinName scl)
@@ -63,7 +63,6 @@
     char buffer[7];
     bool thm = false;
     
-    INFO("Getting time from RTC\n");
     if (!read(0, buffer, 7) ) {
         //  Failed to read
         ERR("Failed to read from RTC\n");
@@ -178,7 +177,6 @@
     }
     m_rtc->stop();
     
-    INFO("Successfully read %d registers from RTC\n", len);
     return true;
 }