Libreria para el RTC DS-1307

Dependents:   Tarea_Reloj_mayamira

Fork of RTC-DS1307 by Henry Leinen

Files at this revision

API Documentation at this revision

Comitter:
satelite
Date:
Tue May 24 13:55:21 2016 +0000
Parent:
9:5627b407e097
Commit message:
Changed language, to show days in spanish

Changed in this revision

Rtc_Ds1307.cpp Show annotated file Show diff for this revision Revisions of this file
debug.h Show annotated file Show diff for this revision Revisions of this file
--- a/Rtc_Ds1307.cpp	Wed Jun 26 21:05:46 2013 +0000
+++ b/Rtc_Ds1307.cpp	Tue May 24 13:55:21 2016 +0000
@@ -6,7 +6,7 @@
 #endif
 #include "debug.h"
 
-const char *Rtc_Ds1307::m_weekDays[] = { "Saturday", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday" };    
+const char *Rtc_Ds1307::m_weekDays[] = {"Dom", "Lun", "Mar", "Mie", "Jue", "Vie", "Sab"};    
 
 
 Rtc_Ds1307::Rtc_Ds1307(PinName sda, PinName scl)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debug.h	Tue May 24 13:55:21 2016 +0000
@@ -0,0 +1,16 @@
+#ifndef __DEBUG_H__
+#define __DEBUG_H__
+ 
+ 
+#ifdef DEBUG
+#define INFO(x, ...) std::printf("[INFO: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
+#define WARN(x, ...) std::printf("[WARN: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
+#define ERR(x, ...) std::printf("[ERR: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
+#else
+#define INFO(x, ...)
+#define WARN(x, ...)
+#define ERR(x, ...)
+#endif
+ 
+ 
+#endif
\ No newline at end of file