;)."
Há cerca de 2 meses compilava sem problemas mas agora não consigo.
Alguém pode me ajudar?
#include <DS3231.h>
// Init the DS3231 using the hardware interface DS3231 rtc(SDA, SCL);//LINHA EM QUESTÃO
void setup() { // Setup Serial connection Serial.begin(115200); // Uncomment the next line if you are using an Arduino Leonardo //while (!Serial) {}
// Initialize the rtc object rtc.begin();
// The following lines can be uncommented to set the date and time //rtc.setDOW(WEDNESDAY); // Set Day-of-Week to SUNDAY //rtc.setTime(12, 0, 0); // Set the time to 12:00:00 (24hr format) //rtc.setDate(1, 1, 2014); // Set the date to January 1st, 2014 }
void loop() { // Send Day-of-Week Serial.print(rtc.getDOWStr()); Serial.print(" ");
// Send date Serial.print(rtc.getDateStr()); Serial.print(" -- ");
// Send time Serial.println(rtc.getTimeStr());
// Wait one second before repeating :) delay (1000); }…
Adicionado por mark spencer ao 22:40 em 27 fevereiro 2018
ódulo tenha um diferencial em relação aos outros.
O DS3231 realmente não faz uso do chip de memória AT24C32 que por sinal não é uma RAM mas sim uma EEPROM.
Abraço.
…
Adicionado por Wiechert ao 23:24 em 3 fevereiro 2016
ontrolado por tempo.
Sugiro que faça testes com o DS3231 para entender como funciona.
https://www.maximintegrated.com/en/products/digital/real-time-clock...…
depois que sua encomenda chegar e vc implantar tal rtc DS3231 no seu projeto, caso consiga se lembrar de vir aqui compartilhar sua experiência, agradecemos!