|
|
|
|
avec vos moyens et votre curiosité
extraits de la fabuleuse histoire du DIY par Olivia Verger-Lisicki
void setup() { // put your setup code here, to run once: } void loop() { // put your main code here, to run repeatedly: }
#include#include "RTClib.h" RTC_PCF8523 rtc; ... DateTime now = rtc.now() ; ... rtc.adjust(DateTime(int(nmea.getYear()), int(nmea.getMonth()), int(nmea.getDay()), int(nmea.getHour()), int(nmea.getMinute()), int(nmea.getSecond()))); /**/ now = rtc.now() ; uint32_t ts = now.unixtime();// getEpoch()