Closed rph-r closed 4 years ago
This is only a warning. I only work with the AVR architecture. Since I cannot test or debug on other architectures, I mark my libraries as AVR only. Go ahead and try it anyway, it may work but I cannot guarantee. If it works and you want to get rid of the warning, then change this line in the library.properties file to read:
architectures=*
Cheers!
Thank you! but I get errors after that. In the TimeRTC example: _TimeRTC:13:25: error: 'RTC_t {aka struct RTC_struct}' has no member named 'get' setSyncProvider(RTC.get); // the function to get the time from the RTC ^~~ exit status 1 'RTC_t {aka struct RTCstruct}' has no member named 'get'
My script and the examples works well on Atmega328 based arduino
Probably a DS3232RTC object needs to be instantiated (see the README).
Also try this sketch:
#include <DS3232RTC.h> // https://github.com/JChristensen/DS3232RTC
DS3232RTC myRTC;
void setup()
{
Serial.begin(9600);
myRTC.begin();
setSyncProvider(myRTC.get); // the function to get the time from the RTC
if(timeStatus() != timeSet)
Serial.println("Unable to sync with the RTC");
else
Serial.println("RTC has set the system time");
}
void loop()
{
digitalClockDisplay();
delay(10000);
}
void digitalClockDisplay()
{
// digital clock display of the time
Serial.print("The current date and time is: ");
Serial.print(hour());
Serial.print(':');
Serial.print(minute());
Serial.print(':');
Serial.print(second());
Serial.print(' ');
Serial.print(day());
Serial.print('.');
Serial.print(month());
Serial.print('.');
Serial.print(year());
Serial.print(" - Temperatur: ");
Serial.print(myRTC.temperature() / 4.0);
Serial.print("°C");
Serial.println();
}
yes, I already tried with DS3232RTC myRTC; , but still doesn't work.
I'm afraid that I'm out of ideas then. Sorry.
Output in french. Something like: pretends to be executable on avr architectures and could be incompatible with your actual board executing on megaavr any way to get it work there?