<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Arduino%3A_RTC_DS1302_Unix_Time</id>
	<title>Arduino: RTC DS1302 Unix Time - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Arduino%3A_RTC_DS1302_Unix_Time"/>
	<link rel="alternate" type="text/html" href="https://onnocenter.or.id/wiki/index.php?title=Arduino:_RTC_DS1302_Unix_Time&amp;action=history"/>
	<updated>2026-04-19T22:08:29Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.4</generator>
	<entry>
		<id>https://onnocenter.or.id/wiki/index.php?title=Arduino:_RTC_DS1302_Unix_Time&amp;diff=45808&amp;oldid=prev</id>
		<title>Onnowpurbo: New page: ==Code==   // Example sketch for interfacing with the DS1302 timekeeping chip.  //  #include &lt;stdio.h&gt;  #include &lt;Time.h&gt;  #include &lt;DS1302.h&gt;    // Create a DS1302 object.  DS1302 rtc(8, ...</title>
		<link rel="alternate" type="text/html" href="https://onnocenter.or.id/wiki/index.php?title=Arduino:_RTC_DS1302_Unix_Time&amp;diff=45808&amp;oldid=prev"/>
		<updated>2016-02-29T07:32:01Z</updated>

		<summary type="html">&lt;p&gt;New page: ==Code==   // Example sketch for interfacing with the DS1302 timekeeping chip.  //  #include &amp;lt;stdio.h&amp;gt;  #include &amp;lt;Time.h&amp;gt;  #include &amp;lt;DS1302.h&amp;gt;    // Create a DS1302 object.  DS1302 rtc(8, ...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Code==&lt;br /&gt;
&lt;br /&gt;
 // Example sketch for interfacing with the DS1302 timekeeping chip.&lt;br /&gt;
 //&lt;br /&gt;
 #include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
 #include &amp;lt;Time.h&amp;gt;&lt;br /&gt;
 #include &amp;lt;DS1302.h&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 // Create a DS1302 object.&lt;br /&gt;
 DS1302 rtc(8, 7, 6);&lt;br /&gt;
 &lt;br /&gt;
 void setup() {&lt;br /&gt;
   Serial.begin(9600); &lt;br /&gt;
 &lt;br /&gt;
   // Initialize a new chip by turning off write protection and clearing the&lt;br /&gt;
   // clock halt flag. These methods needn't always be called. See the DS1302&lt;br /&gt;
   // datasheet for details.&lt;br /&gt;
   rtc.writeProtect(false);&lt;br /&gt;
   rtc.halt(false);&lt;br /&gt;
   Time t = rtc.getTime();&lt;br /&gt;
   setTime(t.hour,t.min,t.sec,t.date,t.mon,t.year);&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 // Loop and print unix time every second.&lt;br /&gt;
 void loop() {&lt;br /&gt;
   Serial.println(now());&lt;br /&gt;
   delay(1000);&lt;br /&gt;
 }&lt;/div&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
</feed>