The Planted Tank Forum - View Single Post - Guide: Arduino based LED controller for Current Satellite LED+
View Single Post
post #331 of (permalink) Old 08-30-2013, 01:53 PM
mistergreen
Children Boogie
 
mistergreen's Avatar
 
Join Date: Dec 2006
Location: Cincinnati
Posts: 16,038
Quote:
Originally Posted by Dahammer View Post
The code already does:
Code:
  setSyncProvider(syncProvider);     // reference our syncProvider function instead of RTC_DS1307::get()
Code:
time_t syncProvider()
{
  //this does the same thing as RTC_DS1307::get()
  return RTC.now().unixtime();
}
Yeah, does it do only once on setup()?

mistergreen is online now  
 
 
For the best viewing experience please update your browser to Google Chrome