Hallo!
Ich versuche als Anfänger die Zeit und das Datum seriellen Monitor anzuzeigen.
Leider kommt beim Kompilieren eine undefinierte Fehlermeldung.
Gibt es evtl. eine andere einfache Möglichkeit die Funktion TimeDat zu nutzen?
Ich bitte um Hilfe.
Arduino: 1.6.6 (Windows 7), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
WARNUNG: Bibliothek RTCZero behauptet auf [samd] Architektur(en) ausgeführt werden zu können und ist möglicherweise inkompatibel mit Ihrem derzeitigen Board, welches auf [avr] Architektur(en) ausgeführt wird.
In file included from C:\Users\GR\Documents\Ausgang\RTCZero_rtc\RTCZero_rtc.ino:17:0:
C:\Users\GR\Documents\Arduino\libraries\RTCZero\src/RTCZero.h:32:26: error: 'RTC_MODE2_MASK_SEL_OFF_Val' was not declared in this scope
MATCH_OFF = RTC_MODE2_MASK_SEL_OFF_Val, // Never
^
C:\Users\GR\Documents\Arduino\libraries\RTCZero\src/RTCZero.h:33:26: error: 'RTC_MODE2_MASK_SEL_SS_Val' was not declared in this scope
MATCH_SS = RTC_MODE2_MASK_SEL_SS_Val, // Every Minute
^
C:\Users\GR\Documents\Arduino\libraries\RTCZero\src/RTCZero.h:34:26: error: 'RTC_MODE2_MASK_SEL_MMSS_Val' was not declared in this scope
MATCH_MMSS = RTC_MODE2_MASK_SEL_MMSS_Val, // Every Hour
^
C:\Users\GR\Documents\Arduino\libraries\RTCZero\src/RTCZero.h:35:26: error: 'RTC_MODE2_MASK_SEL_HHMMSS_Val' was not declared in this scope
MATCH_HHMMSS = RTC_MODE2_MASK_SEL_HHMMSS_Val, // Every Day
^
C:\Users\GR\Documents\Arduino\libraries\RTCZero\src/RTCZero.h:36:26: error: 'RTC_MODE2_MASK_SEL_DDHHMMSS_Val' was not declared in this scope
MATCH_DHHMMSS = RTC_MODE2_MASK_SEL_DDHHMMSS_Val, // Every Month
^
C:\Users\GR\Documents\Arduino\libraries\RTCZero\src/RTCZero.h:37:26: error: 'RTC_MODE2_MASK_SEL_MMDDHHMMSS_Val' was not declared in this scope
MATCH_MMDDHHMMSS = RTC_MODE2_MASK_SEL_MMDDHHMMSS_Val, // Every Year
^
C:\Users\GR\Documents\Arduino\libraries\RTCZero\src/RTCZero.h:38:26: error: 'RTC_MODE2_MASK_SEL_YYMMDDHHMMSS_Val' was not declared in this scope
MATCH_YYMMDDHHMMSS = RTC_MODE2_MASK_SEL_YYMMDDHHMMSS_Val // Once, on a specific date and a specific time
^
C:\Users\GR\Documents\Ausgang\RTCZero_rtc\RTCZero_rtc.ino: In function 'void setup()':
RTCZero_rtc:36: error: 'rtc' was not declared in this scope
rtc.begin(); // initialize RTC
^
C:\Users\GR\Documents\Ausgang\RTCZero_rtc\RTCZero_rtc.ino: In function 'void loop()':
RTCZero_rtc:56: error: 'rtc' was not declared in this scope
Serial.print(rtc.getDay());
^
exit status 1
'rtc' was not declared in this scope
Dieser Report hätte mehr Informationen mit
"Ausführliche Ausgabe während der Kompilierung"
aktiviert in Datei > Einstellungen.
RTCZero_rtc.ino (1.35 KB)