User Tools

Site Tools


set_time_sketch

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

set_time_sketch [2017/12/10 06:04]
adam created
set_time_sketch [2017/12/10 06:06]
adam
Line 1: Line 1:
 Arduino Sketch - Set time on RTC DS1302 Arduino Sketch - Set time on RTC DS1302
  
-<​code>​+<​code ​c>
 // Example sketch for interfacing with the DS1302 timekeeping chip. // Example sketch for interfacing with the DS1302 timekeeping chip.
 // //
Line 68: Line 68:
  
   // Make a new time object to set the date and time.   // Make a new time object to set the date and time.
-  // Sunday, ​September 222013 at 01:38:50+  // Sunday, ​December 102017 at 14:30:05
-  Time t(201392213850, Time::​kSunday);​+  Time t(20171210143005, Time::​kSunday);​
  
   // Set the time and date on the chip.   // Set the time and date on the chip.
set_time_sketch.txt · Last modified: 2017/12/10 06:06 by adam