**[[ad_ul_data_logger|Uno-Leonardo Data Logger]]** ====== Real Time Clock DS1307 ====== ===== Description ===== RTC DS1307 is connected to standard TWI (I2C) bus. ==== Used Pins ==== === Arduino Leonardo Compatibility=== Digital Pin: **2, 3**\\ Bus: **TWI**\\ Power Pin: **GND, +5V**\\ {{:ad_ul_data_loger_1_0_0:leo_pin_twi.png?300|}} === Arduino Uno Compatibility=== Analogue Pin: **4,5**\\ Bus: **TWI**\\ Power Pin: **GND, +5V**\\ {{:ad_ul_data_loger_1_0_0:uno_pin_twi.png?300|}} ==== Config options ==== **SQW** is output pin on which is available square wave depends of DS1307 setings.\\ Pin header (right side with LED) in short show output on **SQW**\\ \\ {{:ad_ul_data_loger_1_0_0:uno_leo_mega_duo_data_loger_v1_0_0_ds1307.png|}} ==== Code example ====